paws.management (version 0.5.0)

opsworks: AWS OpsWorks

Description

Welcome to the AWS OpsWorks Stacks API Reference. This guide provides descriptions, syntax, and usage examples for AWS OpsWorks Stacks actions and data types, including common parameters and error codes.

AWS OpsWorks Stacks is an application management service that provides an integrated experience for overseeing the complete application lifecycle. For information about this product, go to the AWS OpsWorks details page.

SDKs and CLI

The most common way to use the AWS OpsWorks Stacks API is by using the AWS Command Line Interface (CLI) or by using one of the AWS SDKs to implement applications in your preferred language. For more information, see:

Endpoints

AWS OpsWorks Stacks supports the following endpoints, all HTTPS. You must connect to one of the following endpoints. Stacks can only be accessed or managed within the endpoint in which they are created.

  • opsworks.us-east-1.amazonaws.com

  • opsworks.us-east-2.amazonaws.com

  • opsworks.us-west-1.amazonaws.com

  • opsworks.us-west-2.amazonaws.com

  • opsworks.ca-central-1.amazonaws.com (API only; not available in the AWS console)

  • opsworks.eu-west-1.amazonaws.com

  • opsworks.eu-west-2.amazonaws.com

  • opsworks.eu-west-3.amazonaws.com

  • opsworks.eu-central-1.amazonaws.com

  • opsworks.ap-northeast-1.amazonaws.com

  • opsworks.ap-northeast-2.amazonaws.com

  • opsworks.ap-south-1.amazonaws.com

  • opsworks.ap-southeast-1.amazonaws.com

  • opsworks.ap-southeast-2.amazonaws.com

  • opsworks.sa-east-1.amazonaws.com

Chef Versions

When you call create_stack, clone_stack, or update_stack we recommend you use the ConfigurationManager parameter to specify the Chef version. The recommended and default value for Linux stacks is currently 12. Windows stacks use Chef 12.2. For more information, see Chef Versions.

You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend migrating your existing Linux stacks to Chef 12 as soon as possible.

Usage

opsworks(config = list(), credentials = list(), endpoint = NULL, region = NULL)

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Service syntax

svc <- opsworks(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

assign_instanceAssign a registered instance to a layer
assign_volumeAssigns one of the stack's registered Amazon EBS volumes to a specified instance
associate_elastic_ipAssociates one of the stack's registered Elastic IP addresses with a specified instance
attach_elastic_load_balancerAttaches an Elastic Load Balancing load balancer to a specified layer
clone_stackCreates a clone of a specified stack
create_appCreates an app for a specified stack
create_deploymentRuns deployment or stack commands
create_instanceCreates an instance in a specified stack
create_layerCreates a layer
create_stackCreates a new stack
create_user_profileCreates a new user profile
delete_appDeletes a specified app
delete_instanceDeletes a specified instance, which terminates the associated Amazon EC2 instance
delete_layerDeletes a specified layer
delete_stackDeletes a specified stack
delete_user_profileDeletes a user profile
deregister_ecs_clusterDeregisters a specified Amazon ECS cluster from a stack
deregister_elastic_ipDeregisters a specified Elastic IP address
deregister_instanceDeregister a registered Amazon EC2 or on-premises instance
deregister_rds_db_instanceDeregisters an Amazon RDS instance
deregister_volumeDeregisters an Amazon EBS volume
describe_agent_versionsDescribes the available AWS OpsWorks Stacks agent versions
describe_appsRequests a description of a specified set of apps
describe_commandsDescribes the results of specified commands
describe_deploymentsRequests a description of a specified set of deployments
describe_ecs_clustersDescribes Amazon ECS clusters that are registered with a stack
describe_elastic_ipsDescribes Elastic IP addresses
describe_elastic_load_balancersDescribes a stack's Elastic Load Balancing instances
describe_instancesRequests a description of a set of instances
describe_layersRequests a description of one or more layers in a specified stack
describe_load_based_auto_scalingDescribes load-based auto scaling configurations for specified layers
describe_my_user_profileDescribes a user's SSH information
describe_operating_systemsDescribes the operating systems that are supported by AWS OpsWorks Stacks
describe_permissionsDescribes the permissions for a specified stack
describe_raid_arraysDescribe an instance's RAID arrays
describe_rds_db_instancesDescribes Amazon RDS instances
describe_service_errorsDescribes AWS OpsWorks Stacks service errors
describe_stack_provisioning_parametersRequests a description of a stack's provisioning parameters
describe_stacksRequests a description of one or more stacks
describe_stack_summaryDescribes the number of layers and apps in a specified stack, and the number of instances in each state, such as running_setup or online
describe_time_based_auto_scalingDescribes time-based auto scaling configurations for specified instances
describe_user_profilesDescribe specified users
describe_volumesDescribes an instance's Amazon EBS volumes
detach_elastic_load_balancerDetaches a specified Elastic Load Balancing instance from its layer
disassociate_elastic_ipDisassociates an Elastic IP address from its instance
get_hostname_suggestionGets a generated host name for the specified layer, based on the current host name theme
grant_accessThis action can be used only with Windows stacks
list_tagsReturns a list of tags that are applied to the specified stack or layer
reboot_instanceReboots a specified instance
register_ecs_clusterRegisters a specified Amazon ECS cluster with a stack
register_elastic_ipRegisters an Elastic IP address with a specified stack
register_instanceRegisters instances that were created outside of AWS OpsWorks Stacks with a specified stack
register_rds_db_instanceRegisters an Amazon RDS instance with a stack
register_volumeRegisters an Amazon EBS volume with a specified stack
set_load_based_auto_scalingSpecify the load-based auto scaling configuration for a specified layer
set_permissionSpecifies a user's permissions
set_time_based_auto_scalingSpecify the time-based auto scaling configuration for a specified instance
start_instanceStarts a specified instance
start_stackStarts a stack's instances
stop_instanceStops a specified instance
stop_stackStops a specified stack
tag_resourceApply cost-allocation tags to a specified stack or layer in AWS OpsWorks Stacks
unassign_instanceUnassigns a registered instance from all layers that are using the instance
unassign_volumeUnassigns an assigned Amazon EBS volume
untag_resourceRemoves tags from a specified stack or layer
update_appUpdates a specified app
update_elastic_ipUpdates a registered Elastic IP address's name
update_instanceUpdates a specified instance
update_layerUpdates a specified layer
update_my_user_profileUpdates a user's SSH public key
update_rds_db_instanceUpdates an Amazon RDS instance
update_stackUpdates a specified stack
update_user_profileUpdates a specified user profile
update_volumeUpdates an Amazon EBS volume's name or mount point

Examples

Run this code
if (FALSE) {
svc <- opsworks()
svc$assign_instance(
  Foo = 123
)
}

Run the code above in your browser using DataLab