awscli 1.42.17__py3-none-any.whl → 1.42.19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- awscli/__init__.py +1 -1
- awscli/customizations/argrename.py +0 -2
- awscli/examples/application-signals/batch-get-service-level-objective-budget-report.rst +99 -0
- awscli/examples/application-signals/create-service-level-objective.rst +88 -0
- awscli/examples/application-signals/delete-service-level-objective.rst +10 -0
- awscli/examples/application-signals/get-service-level-objective.rst +53 -0
- awscli/examples/application-signals/get-service.rst +72 -0
- awscli/examples/application-signals/list-service-dependencies.rst +96 -0
- awscli/examples/application-signals/list-service-dependents.rst +36 -0
- awscli/examples/application-signals/list-service-level-objectives.rst +17 -0
- awscli/examples/application-signals/list-service-operations.rst +63 -0
- awscli/examples/application-signals/list-services.rst +61 -0
- awscli/examples/application-signals/list-tags-for-resource.rst +17 -0
- awscli/examples/application-signals/start-discovery.rst +9 -0
- awscli/examples/application-signals/tag-resource.rst +11 -0
- awscli/examples/application-signals/untag-resource.rst +11 -0
- awscli/examples/application-signals/update-service-level-objective.rst +69 -0
- awscli/handlers.py +0 -4
- {awscli-1.42.17.dist-info → awscli-1.42.19.dist-info}/METADATA +2 -2
- {awscli-1.42.17.dist-info → awscli-1.42.19.dist-info}/RECORD +28 -92
- awscli/customizations/opsworks.py +0 -543
- awscli/customizations/opsworkscm.py +0 -21
- awscli/examples/opsworks/assign-instance.rst +0 -14
- awscli/examples/opsworks/assign-volume.rst +0 -17
- awscli/examples/opsworks/associate-elastic-ip.rst +0 -14
- awscli/examples/opsworks/attach-elastic-load-balancer.rst +0 -14
- awscli/examples/opsworks/create-app.rst +0 -64
- awscli/examples/opsworks/create-deployment.rst +0 -66
- awscli/examples/opsworks/create-instance.rst +0 -25
- awscli/examples/opsworks/create-layer.rst +0 -17
- awscli/examples/opsworks/create-server.rst +0 -43
- awscli/examples/opsworks/create-stack.rst +0 -25
- awscli/examples/opsworks/create-user-profile.rst +0 -24
- awscli/examples/opsworks/delete-app.rst +0 -17
- awscli/examples/opsworks/delete-instance.rst +0 -15
- awscli/examples/opsworks/delete-layer.rst +0 -17
- awscli/examples/opsworks/delete-stack.rst +0 -18
- awscli/examples/opsworks/delete-user-profile.rst +0 -17
- awscli/examples/opsworks/deregister-elastic-ip.rst +0 -13
- awscli/examples/opsworks/deregister-instance.rst +0 -14
- awscli/examples/opsworks/deregister-rds-db-instance.rst +0 -20
- awscli/examples/opsworks/deregister-volume.rst +0 -15
- awscli/examples/opsworks/describe-apps.rst +0 -38
- awscli/examples/opsworks/describe-commands.rst +0 -43
- awscli/examples/opsworks/describe-deployments.rst +0 -52
- awscli/examples/opsworks/describe-elastic-ips.rst +0 -24
- awscli/examples/opsworks/describe-elastic-load-balancers.rst +0 -37
- awscli/examples/opsworks/describe-instances.rst +0 -95
- awscli/examples/opsworks/describe-layers.rst +0 -171
- awscli/examples/opsworks/describe-load-based-auto-scaling.rst +0 -37
- awscli/examples/opsworks/describe-my-user-profile.rst +0 -24
- awscli/examples/opsworks/describe-permissions.rst +0 -26
- awscli/examples/opsworks/describe-raid-arrays.rst +0 -31
- awscli/examples/opsworks/describe-rds-db-instances.rst +0 -29
- awscli/examples/opsworks/describe-stack-provisioning-parameters.rst +0 -32
- awscli/examples/opsworks/describe-stack-summary.rst +0 -27
- awscli/examples/opsworks/describe-stacks.rst +0 -65
- awscli/examples/opsworks/describe-timebased-auto-scaling.rst +0 -39
- awscli/examples/opsworks/describe-user-profiles.rst +0 -32
- awscli/examples/opsworks/describe-volumes.rst +0 -31
- awscli/examples/opsworks/detach-elastic-load-balancer.rst +0 -14
- awscli/examples/opsworks/disassociate-elastic-ip.rst +0 -14
- awscli/examples/opsworks/get-hostname-suggestion.rst +0 -21
- awscli/examples/opsworks/reboot-instance.rst +0 -14
- awscli/examples/opsworks/register-elastic-ip.rst +0 -19
- awscli/examples/opsworks/register-rds-db-instance.rst +0 -15
- awscli/examples/opsworks/register-volume.rst +0 -18
- awscli/examples/opsworks/register.rst +0 -105
- awscli/examples/opsworks/set-load-based-auto-scaling.rst +0 -38
- awscli/examples/opsworks/set-permission.rst +0 -23
- awscli/examples/opsworks/set-time-based-auto-scaling.rst +0 -33
- awscli/examples/opsworks/start-instance.rst +0 -20
- awscli/examples/opsworks/start-stack.rst +0 -15
- awscli/examples/opsworks/stop-instance.rst +0 -20
- awscli/examples/opsworks/stop-stack.rst +0 -15
- awscli/examples/opsworks/unassign-instance.rst +0 -14
- awscli/examples/opsworks/unassign-volume.rst +0 -16
- awscli/examples/opsworks/update-app.rst +0 -14
- awscli/examples/opsworks/update-elastic-ip.rst +0 -14
- awscli/examples/opsworks/update-instance.rst +0 -14
- awscli/examples/opsworks/update-layer.rst +0 -14
- awscli/examples/opsworks/update-my-user-profile.rst +0 -16
- awscli/examples/opsworks/update-rds-db-instance.rst +0 -18
- awscli/examples/opsworks/update-volume.rst +0 -16
- awscli/examples/opsworkscm/associate-node.rst +0 -22
- awscli/examples/opsworkscm/create-backup.rst +0 -46
- awscli/examples/opsworkscm/create-server.rst +0 -48
- awscli/examples/opsworkscm/delete-backup.rst +0 -17
- awscli/examples/opsworkscm/delete-server.rst +0 -16
- awscli/examples/opsworkscm/describe-account-attributes.rst +0 -26
- awscli/examples/opsworkscm/describe-backups.rst +0 -44
- awscli/examples/opsworkscm/describe-events.rst +0 -21
- awscli/examples/opsworkscm/describe-node-association-status.rst +0 -20
- awscli/examples/opsworkscm/describe-servers.rst +0 -48
- awscli/examples/opsworkscm/disassociate-node.rst +0 -19
- awscli/examples/opsworkscm/restore-server.rst +0 -20
- awscli/examples/opsworkscm/start-maintenance.rst +0 -39
- awscli/examples/opsworkscm/update-server-engine-attributes.rst +0 -43
- awscli/examples/opsworkscm/update-server.rst +0 -42
- {awscli-1.42.17.data → awscli-1.42.19.data}/scripts/aws +0 -0
- {awscli-1.42.17.data → awscli-1.42.19.data}/scripts/aws.cmd +0 -0
- {awscli-1.42.17.data → awscli-1.42.19.data}/scripts/aws_bash_completer +0 -0
- {awscli-1.42.17.data → awscli-1.42.19.data}/scripts/aws_completer +0 -0
- {awscli-1.42.17.data → awscli-1.42.19.data}/scripts/aws_zsh_completer.sh +0 -0
- {awscli-1.42.17.dist-info → awscli-1.42.19.dist-info}/LICENSE.txt +0 -0
- {awscli-1.42.17.dist-info → awscli-1.42.19.dist-info}/WHEEL +0 -0
- {awscli-1.42.17.dist-info → awscli-1.42.19.dist-info}/top_level.txt +0 -0
@@ -1,64 +0,0 @@
|
|
1
|
-
**Example 1: To create an app**
|
2
|
-
|
3
|
-
The following example creates a PHP app named SimplePHPApp from code stored in a GitHub repository.
|
4
|
-
The command uses the shorthand form of the application source definition. ::
|
5
|
-
|
6
|
-
aws opsworks create-app \
|
7
|
-
--region us-east-1 \
|
8
|
-
--stack-id f6673d70-32e6-4425-8999-265dd002fec7 \
|
9
|
-
--name SimplePHPApp \
|
10
|
-
--type php \
|
11
|
-
--app-source Type=git,Url=git://github.com/amazonwebservices/opsworks-demo-php-simple-app.git,Revision=version1
|
12
|
-
|
13
|
-
Output::
|
14
|
-
|
15
|
-
{
|
16
|
-
"AppId": "6cf5163c-a951-444f-a8f7-3716be75f2a2"
|
17
|
-
}
|
18
|
-
|
19
|
-
**Example 2: To create an app with an attached database**
|
20
|
-
|
21
|
-
The following example creates a JSP app from code stored in .zip archive in a public S3 bucket.
|
22
|
-
It attaches an RDS DB instance to serve as the app's data store. The application and database sources are defined in separate
|
23
|
-
JSON files that are in the directory from which you run the command. ::
|
24
|
-
|
25
|
-
aws opsworks create-app \
|
26
|
-
--region us-east-1 \
|
27
|
-
--stack-id 8c428b08-a1a1-46ce-a5f8-feddc43771b8 \
|
28
|
-
--name SimpleJSP \
|
29
|
-
--type java \
|
30
|
-
--app-source file://appsource.json \
|
31
|
-
--data-sources file://datasource.json
|
32
|
-
|
33
|
-
The application source information is in ``appsource.json`` and contains the following. ::
|
34
|
-
|
35
|
-
{
|
36
|
-
"Type": "archive",
|
37
|
-
"Url": "https://s3.amazonaws.com/opsworks-demo-assets/simplejsp.zip"
|
38
|
-
}
|
39
|
-
|
40
|
-
The database source information is in ``datasource.json`` and contains the following. ::
|
41
|
-
|
42
|
-
[
|
43
|
-
{
|
44
|
-
"Type": "RdsDbInstance",
|
45
|
-
"Arn": "arn:aws:rds:us-west-2:123456789012:db:clitestdb",
|
46
|
-
"DatabaseName": "mydb"
|
47
|
-
}
|
48
|
-
]
|
49
|
-
|
50
|
-
**Note**: For an RDS DB instance, you must first use ``register-rds-db-instance`` to register the instance with the stack.
|
51
|
-
For MySQL App Server instances, set ``Type`` to ``OpsworksMysqlInstance``. These instances are
|
52
|
-
created by AWS OpsWorks,
|
53
|
-
so they do not have to be registered.
|
54
|
-
|
55
|
-
Output::
|
56
|
-
|
57
|
-
{
|
58
|
-
"AppId": "26a61ead-d201-47e3-b55c-2a7c666942f8"
|
59
|
-
}
|
60
|
-
|
61
|
-
For more information, see `Adding Apps`_ in the *AWS OpsWorks User Guide*.
|
62
|
-
|
63
|
-
.. _`Adding Apps`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html
|
64
|
-
|
@@ -1,66 +0,0 @@
|
|
1
|
-
**Example 1: To deploy apps and run stack commands**
|
2
|
-
|
3
|
-
The following examples show how to use the ``create-deployment`` command to deploy apps and run stack commands. Notice that the quote (``"``) characters in the JSON object that specifies the command are all preceded by escape characters (\\). Without the escape characters, the command might return an invalid JSON error.
|
4
|
-
|
5
|
-
The following ``create-deployment`` example deploys an app to a specified stack. ::
|
6
|
-
|
7
|
-
aws opsworks create-deployment \
|
8
|
-
--stack-id cfb7e082-ad1d-4599-8e81-de1c39ab45bf \
|
9
|
-
--app-id 307be5c8-d55d-47b5-bd6e-7bd417c6c7eb
|
10
|
-
--command "{\"Name\":\"deploy\"}"
|
11
|
-
|
12
|
-
Output::
|
13
|
-
|
14
|
-
{
|
15
|
-
"DeploymentId": "5746c781-df7f-4c87-84a7-65a119880560"
|
16
|
-
}
|
17
|
-
|
18
|
-
**Example 2: To deploy a Rails App and Migrate the Database**
|
19
|
-
|
20
|
-
The following ``create-deployment`` command deploys a Ruby on Rails app to a specified stack and migrates the database. ::
|
21
|
-
|
22
|
-
aws opsworks create-deployment \
|
23
|
-
--stack-id cfb7e082-ad1d-4599-8e81-de1c39ab45bf \
|
24
|
-
--app-id 307be5c8-d55d-47b5-bd6e-7bd417c6c7eb \
|
25
|
-
--command "{\"Name\":\"deploy\", \"Args\":{\"migrate\":[\"true\"]}}"
|
26
|
-
|
27
|
-
Output::
|
28
|
-
|
29
|
-
{
|
30
|
-
"DeploymentId": "5746c781-df7f-4c87-84a7-65a119880560"
|
31
|
-
}
|
32
|
-
|
33
|
-
For more information on deployment, see `Deploying Apps <https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html>`__ in the *AWS OpsWorks User Guide*.
|
34
|
-
|
35
|
-
**Example 3: Run a Recipe**
|
36
|
-
|
37
|
-
The following ``create-deployment`` command runs a custom recipe, ``phpapp::appsetup``, on the instances in a specified stack. ::
|
38
|
-
|
39
|
-
aws opsworks create-deployment \
|
40
|
-
--stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb \
|
41
|
-
--command "{\"Name\":\"execute_recipes\", \"Args\":{\"recipes\":[\"phpapp::appsetup\"]}}"
|
42
|
-
|
43
|
-
Output::
|
44
|
-
|
45
|
-
{
|
46
|
-
"DeploymentId": "5cbaa7b9-4e09-4e53-aa1b-314fbd106038"
|
47
|
-
}
|
48
|
-
|
49
|
-
For more information, see `Run Stack Commands <https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html>`__ in the *AWS OpsWorks User Guide*.
|
50
|
-
|
51
|
-
**Example 4: Install Dependencies**
|
52
|
-
|
53
|
-
The following ``create-deployment`` command installs dependencies, such as packages or Ruby gems, on the instances in a
|
54
|
-
specified stack. ::
|
55
|
-
|
56
|
-
aws opsworks create-deployment \
|
57
|
-
--stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb \
|
58
|
-
--command "{\"Name\":\"install_dependencies\"}"
|
59
|
-
|
60
|
-
Output::
|
61
|
-
|
62
|
-
{
|
63
|
-
"DeploymentId": "aef5b255-8604-4928-81b3-9b0187f962ff"
|
64
|
-
}
|
65
|
-
|
66
|
-
For more information, see `Run Stack Commands <https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html>`__ in the *AWS OpsWorks User Guide*.
|
@@ -1,25 +0,0 @@
|
|
1
|
-
**To create an instance**
|
2
|
-
|
3
|
-
The following ``create-instance`` command creates an m1.large Amazon Linux instance named myinstance1 in a specified stack.
|
4
|
-
The instance is assigned to one layer. ::
|
5
|
-
|
6
|
-
aws opsworks --region us-east-1 create-instance --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --layer-ids 5c8c272a-f2d5-42e3-8245-5bf3927cb65b --hostname myinstance1 --instance-type m1.large --os "Amazon Linux"
|
7
|
-
|
8
|
-
To use an autogenerated name, call `get-hostname-suggestion`_, which generates
|
9
|
-
a hostname based on the theme that you specified when you created the stack.
|
10
|
-
Then pass that name to the `hostname` argument.
|
11
|
-
|
12
|
-
.. _get-hostname-suggestion: http://docs.aws.amazon.com/cli/latest/reference/opsworks/get-hostname-suggestion.html
|
13
|
-
|
14
|
-
*Output*::
|
15
|
-
|
16
|
-
{
|
17
|
-
"InstanceId": "5f9adeaa-c94c-42c6-aeef-28a5376002cd"
|
18
|
-
}
|
19
|
-
|
20
|
-
**More Information**
|
21
|
-
|
22
|
-
For more information, see `Adding an Instance to a Layer`_ in the *AWS OpsWorks User Guide*.
|
23
|
-
|
24
|
-
.. _`Adding an Instance to a Layer`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html
|
25
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
**To create a layer**
|
2
|
-
|
3
|
-
The following ``create-layer`` command creates a PHP App Server layer named MyPHPLayer in a specified stack. ::
|
4
|
-
|
5
|
-
aws opsworks create-layer --region us-east-1 --stack-id f6673d70-32e6-4425-8999-265dd002fec7 --type php-app --name MyPHPLayer --shortname myphplayer
|
6
|
-
|
7
|
-
*Output*::
|
8
|
-
|
9
|
-
{
|
10
|
-
"LayerId": "0b212672-6b4b-40e4-8a34-5a943cf2e07a"
|
11
|
-
}
|
12
|
-
|
13
|
-
**More Information**
|
14
|
-
|
15
|
-
For more information, see `How to Create a Layer`_ in the *AWS OpsWorks User Guide*.
|
16
|
-
|
17
|
-
.. _`How to Create a Layer`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html
|
@@ -1,43 +0,0 @@
|
|
1
|
-
**To create a server**
|
2
|
-
|
3
|
-
The following ``create-server`` example creates a new Chef Automate server named ``automate-06`` in your default region. Note that defaults are used for most other settings, such as number of backups to retain, and maintenance and backup start times. Before you run a ``create-server`` command, complete prerequisites in `Getting Started with AWS OpsWorks for Chef Automate <https://docs.aws.amazon.com/opsworks/latest/userguide/gettingstarted-opscm.html>`__ in the *AWS Opsworks for Chef Automate User Guide*. ::
|
4
|
-
|
5
|
-
aws opsworks-cm create-server \
|
6
|
-
--engine "ChefAutomate" \
|
7
|
-
--instance-profile-arn "arn:aws:iam::012345678901:instance-profile/aws-opsworks-cm-ec2-role" \
|
8
|
-
--instance-type "t2.medium" \
|
9
|
-
--server-name "automate-06" \
|
10
|
-
--service-role-arn "arn:aws:iam::012345678901:role/aws-opsworks-cm-service-role"
|
11
|
-
|
12
|
-
Output::
|
13
|
-
|
14
|
-
{
|
15
|
-
"Server": {
|
16
|
-
"AssociatePublicIpAddress": true,
|
17
|
-
"BackupRetentionCount": 10,
|
18
|
-
"CreatedAt": 2019-12-29T13:38:47.520Z,
|
19
|
-
"DisableAutomatedBackup": FALSE,
|
20
|
-
"Endpoint": "https://opsworks-cm.us-east-1.amazonaws.com",
|
21
|
-
"Engine": "ChefAutomate",
|
22
|
-
"EngineAttributes": [
|
23
|
-
{
|
24
|
-
"Name": "CHEF_AUTOMATE_ADMIN_PASSWORD",
|
25
|
-
"Value": "1Example1"
|
26
|
-
}
|
27
|
-
],
|
28
|
-
"EngineModel": "Single",
|
29
|
-
"EngineVersion": "2019-08",
|
30
|
-
"InstanceProfileArn": "arn:aws:iam::012345678901:instance-profile/aws-opsworks-cm-ec2-role",
|
31
|
-
"InstanceType": "t2.medium",
|
32
|
-
"PreferredBackupWindow": "Sun:02:00",
|
33
|
-
"PreferredMaintenanceWindow": "00:00",
|
34
|
-
"SecurityGroupIds": [ "sg-12345678" ],
|
35
|
-
"ServerArn": "arn:aws:iam::012345678901:instance/automate-06-1010V4UU2WRM2",
|
36
|
-
"ServerName": "automate-06",
|
37
|
-
"ServiceRoleArn": "arn:aws:iam::012345678901:role/aws-opsworks-cm-service-role",
|
38
|
-
"Status": "CREATING",
|
39
|
-
"SubnetIds": [ "subnet-12345678" ]
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
For more information, see `CreateServer <https://docs.aws.amazon.com/opsworks-cm/latest/APIReference/API_CreateServer.html>`__ in the *AWS OpsWorks for Chef Automate API Reference*.
|
@@ -1,25 +0,0 @@
|
|
1
|
-
**To create a stack**
|
2
|
-
|
3
|
-
The following ``create-stack`` command creates a stack named CLI Stack. ::
|
4
|
-
|
5
|
-
aws opsworks create-stack --name "CLI Stack" --stack-region "us-east-1" --service-role-arn arn:aws:iam::123456789012:role/aws-opsworks-service-role --default-instance-profile-arn arn:aws:iam::123456789012:instance-profile/aws-opsworks-ec2-role --region us-east-1
|
6
|
-
|
7
|
-
The ``service-role-arn`` and ``default-instance-profile-arn`` parameters are required. You typically
|
8
|
-
use the ones that AWS OpsWorks
|
9
|
-
creates for you when you create your first stack. To get the Amazon Resource Names (ARNs) for your
|
10
|
-
account, go to the `IAM console`_, choose ``Roles`` in the navigation panel,
|
11
|
-
choose the role or profile, and choose the ``Summary`` tab.
|
12
|
-
|
13
|
-
.. _`IAM console`: https://console.aws.amazon.com/iam/home
|
14
|
-
|
15
|
-
*Output*::
|
16
|
-
|
17
|
-
{
|
18
|
-
"StackId": "f6673d70-32e6-4425-8999-265dd002fec7"
|
19
|
-
}
|
20
|
-
|
21
|
-
**More Information**
|
22
|
-
|
23
|
-
For more information, see `Create a New Stack`_ in the *AWS OpsWorks User Guide*.
|
24
|
-
|
25
|
-
.. _`Create a New Stack`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html
|
@@ -1,24 +0,0 @@
|
|
1
|
-
**To create a user profile**
|
2
|
-
|
3
|
-
You import an AWS Identity and Access Manager (IAM) user into AWS OpsWorks by calling `create-user-profile` to create a user profile.
|
4
|
-
The following example creates a user profile for the cli-user-test IAM user, who
|
5
|
-
is identified by Amazon Resource Name (ARN). The example assigns the user an SSH username of ``myusername`` and enables self management,
|
6
|
-
which allows the user to specify an SSH public key. ::
|
7
|
-
|
8
|
-
aws opsworks --region us-east-1 create-user-profile --iam-user-arn arn:aws:iam::123456789102:user/cli-user-test --ssh-username myusername --allow-self-management
|
9
|
-
|
10
|
-
*Output*::
|
11
|
-
|
12
|
-
{
|
13
|
-
"IamUserArn": "arn:aws:iam::123456789102:user/cli-user-test"
|
14
|
-
}
|
15
|
-
|
16
|
-
**Tip**: This command imports an IAM user into AWS OpsWorks, but only with the permissions that are
|
17
|
-
granted by the attached policies. You can grant per-stack AWS OpsWorks permissions by using the ``set-permissions`` command.
|
18
|
-
|
19
|
-
**More Information**
|
20
|
-
|
21
|
-
For more information, see `Importing Users into AWS OpsWorks`_ in the *AWS OpsWorks User Guide*.
|
22
|
-
|
23
|
-
.. _`Importing Users into AWS OpsWorks`: http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users-manage-import.html
|
24
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
**To delete an app**
|
2
|
-
|
3
|
-
The following example deletes a specified app, which is identified by its app ID.
|
4
|
-
You can obtain an app ID by going to the app's details page on the AWS OpsWorks console or by
|
5
|
-
running the ``describe-apps`` command. ::
|
6
|
-
|
7
|
-
aws opsworks delete-app --region us-east-1 --app-id 577943b9-2ec1-4baf-a7bf-1d347601edc5
|
8
|
-
|
9
|
-
*Output*: None.
|
10
|
-
|
11
|
-
**More Information**
|
12
|
-
|
13
|
-
For more information, see `Apps`_ in the *AWS OpsWorks User Guide*.
|
14
|
-
|
15
|
-
.. _`Apps`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps.html
|
16
|
-
|
17
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
**To delete an instance**
|
2
|
-
|
3
|
-
The following ``delete-instance`` example deletes a specified instance, which is identified by its instance ID. You can find an instance ID by opening the instance's details page in the AWS OpsWorks console, or by running the ``describe-instances`` command.
|
4
|
-
|
5
|
-
If the instance is online, you must first stop the instance by calling ``stop-instance``, and then you must wait until the instance has stopped. Run ``describe-instances`` to check the instance status.
|
6
|
-
|
7
|
-
To remove the instance's Amazon EBS volumes or Elastic IP addresses, add the ``--delete-volumes`` or ``--delete-elastic-ip`` arguments, respectively. ::
|
8
|
-
|
9
|
-
aws opsworks delete-instance \
|
10
|
-
--region us-east-1 \
|
11
|
-
--instance-id 3a21cfac-4a1f-4ce2-a921-b2cfba6f7771
|
12
|
-
|
13
|
-
This command produces no output.
|
14
|
-
|
15
|
-
For more information, see `Deleting AWS OpsWorks Instances <https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html>`__ in the *AWS OpsWorks User Guide*.
|
@@ -1,17 +0,0 @@
|
|
1
|
-
**To delete a layer**
|
2
|
-
|
3
|
-
The following example deletes a specified layer, which is identified by its layer ID.
|
4
|
-
You can obtain a layer ID by going to the layer's details page on the AWS OpsWorks console or by
|
5
|
-
running the ``describe-layers`` command.
|
6
|
-
|
7
|
-
**Note:** Before deleting a layer, you must use ``delete-instance`` to delete all of the layer's instances. ::
|
8
|
-
|
9
|
-
aws opsworks delete-layer --region us-east-1 --layer-id a919454e-b816-4598-b29a-5796afb498ed
|
10
|
-
|
11
|
-
*Output*: None.
|
12
|
-
|
13
|
-
**More Information**
|
14
|
-
|
15
|
-
For more information, see `Deleting AWS OpsWorks Instances`_ in the *AWS OpsWorks User Guide*.
|
16
|
-
|
17
|
-
.. _`Deleting AWS OpsWorks Instances`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html
|
@@ -1,18 +0,0 @@
|
|
1
|
-
**To delete a stack**
|
2
|
-
|
3
|
-
The following example deletes a specified stack, which is identified by its stack ID.
|
4
|
-
You can obtain a stack ID by clicking **Stack Settings** on the AWS OpsWorks console or by
|
5
|
-
running the ``describe-stacks`` command.
|
6
|
-
|
7
|
-
**Note:** Before deleting a layer, you must use ``delete-app``, ``delete-instance``, and ``delete-layer``
|
8
|
-
to delete all of the stack's apps, instances, and layers. ::
|
9
|
-
|
10
|
-
aws opsworks delete-stack --region us-east-1 --stack-id 154a9d89-7e9e-433b-8de8-617e53756c84
|
11
|
-
|
12
|
-
*Output*: None.
|
13
|
-
|
14
|
-
**More Information**
|
15
|
-
|
16
|
-
For more information, see `Shut Down a Stack`_ in the *AWS OpsWorks User Guide*.
|
17
|
-
|
18
|
-
.. _`Shut Down a Stack`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html
|
@@ -1,17 +0,0 @@
|
|
1
|
-
**To delete a user profile and remove an IAM user from AWS OpsWorks**
|
2
|
-
|
3
|
-
The following example deletes the user profile for a specified AWS Identity and Access Management
|
4
|
-
(IAM) user, who
|
5
|
-
is identified by Amazon Resource Name (ARN). The operation removes the user from AWS OpsWorks, but
|
6
|
-
does not delete the IAM user. You must use the IAM console, CLI, or API for that task. ::
|
7
|
-
|
8
|
-
aws opsworks --region us-east-1 delete-user-profile --iam-user-arn arn:aws:iam::123456789102:user/cli-user-test
|
9
|
-
|
10
|
-
*Output*: None.
|
11
|
-
|
12
|
-
**More Information**
|
13
|
-
|
14
|
-
For more information, see `Importing Users into AWS OpsWorks`_ in the *AWS OpsWorks User Guide*.
|
15
|
-
|
16
|
-
.. _`Importing Users into AWS OpsWorks`: http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users-manage-import.html
|
17
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
**To deregister an Elastic IP address from a stack**
|
2
|
-
|
3
|
-
The following example deregisters an Elastic IP address, identified by its IP address, from its stack. ::
|
4
|
-
|
5
|
-
aws opsworks deregister-elastic-ip --region us-east-1 --elastic-ip 54.148.130.96
|
6
|
-
|
7
|
-
*Output*: None.
|
8
|
-
|
9
|
-
**More Information**
|
10
|
-
|
11
|
-
For more information, see `Deregistering Elastic IP Addresses`_ in the *AWS OpsWorks User Guide*.
|
12
|
-
|
13
|
-
.. _`Deregistering Elastic IP Addresses`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources-dereg.html#resources-dereg-eip
|
@@ -1,14 +0,0 @@
|
|
1
|
-
**To deregister a registered instance from a stack**
|
2
|
-
|
3
|
-
The following ``deregister-instance`` command deregisters a registered instance from its stack. ::
|
4
|
-
|
5
|
-
aws opsworks --region us-east-1 deregister-instance --instance-id 4d6d1710-ded9-42a1-b08e-b043ad7af1e2
|
6
|
-
|
7
|
-
*Output*: None.
|
8
|
-
|
9
|
-
**More Information**
|
10
|
-
|
11
|
-
For more information, see `Deregistering a Registered Instance`_ in the *AWS OpsWorks User Guide*.
|
12
|
-
|
13
|
-
.. _`Deregistering a Registered Instance`: http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-unassign.html
|
14
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
**To deregister an Amazon RDS DB instance from a stack**
|
2
|
-
|
3
|
-
The following example deregisters an RDS DB instance, identified by its ARN, from its stack. ::
|
4
|
-
|
5
|
-
aws opsworks deregister-rds-db-instance --region us-east-1 --rds-db-instance-arn arn:aws:rds:us-west-2:123456789012:db:clitestdb
|
6
|
-
|
7
|
-
*Output*: None.
|
8
|
-
|
9
|
-
**More Information**
|
10
|
-
|
11
|
-
For more information, see `Deregistering Amazon RDS Instances`_ in the *ASW OpsWorks User Guide*.
|
12
|
-
|
13
|
-
.. _`Deregistering Amazon RDS Instances`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources-dereg.html#resources-dereg-rds
|
14
|
-
|
15
|
-
|
16
|
-
.. instance ID: clitestdb
|
17
|
-
Master usernams: cliuser
|
18
|
-
Master PWD: some23!pwd
|
19
|
-
DB Name: mydb
|
20
|
-
aws opsworks deregister-rds-db-instance --region us-east-1 --rds-db-instance-arn arn:aws:rds:us-west-2:645732743964:db:clitestdb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
**To deregister an Amazon EBS volume**
|
2
|
-
|
3
|
-
The following example deregisters an EBS volume from its stack.
|
4
|
-
The volume is identified by its volume ID, which is the GUID that AWS OpsWorks assigned when
|
5
|
-
you registered the volume with the stack, not the EC2 volume ID. ::
|
6
|
-
|
7
|
-
aws opsworks deregister-volume --region us-east-1 --volume-id 5c48ef52-3144-4bf5-beaa-fda4deb23d4d
|
8
|
-
|
9
|
-
*Output*: None.
|
10
|
-
|
11
|
-
**More Information**
|
12
|
-
|
13
|
-
For more information, see `Deregistering Amazon EBS Volumes`_ in the *AWS OpsWorks User Guide*.
|
14
|
-
|
15
|
-
.. _`Deregistering Amazon EBS Volumes`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources-dereg.html#resources-dereg-ebs
|
@@ -1,38 +0,0 @@
|
|
1
|
-
**To describe apps**
|
2
|
-
|
3
|
-
The following ``describe-apps`` command describes the apps in a specified stack. ::
|
4
|
-
|
5
|
-
aws opsworks describe-apps \
|
6
|
-
--stack-id 38ee91e2-abdc-4208-a107-0b7168b3cc7a \
|
7
|
-
--region us-east-1
|
8
|
-
|
9
|
-
Output::
|
10
|
-
|
11
|
-
{
|
12
|
-
"Apps": [
|
13
|
-
{
|
14
|
-
"StackId": "38ee91e2-abdc-4208-a107-0b7168b3cc7a",
|
15
|
-
"AppSource": {
|
16
|
-
"Url": "https://s3-us-west-2.amazonaws.com/opsworks-demo-assets/simplejsp.zip",
|
17
|
-
"Type": "archive"
|
18
|
-
},
|
19
|
-
"Name": "SimpleJSP",
|
20
|
-
"EnableSsl": false,
|
21
|
-
"SslConfiguration": {},
|
22
|
-
"AppId": "da1decc1-0dff-43ea-ad7c-bb667cd87c8b",
|
23
|
-
"Attributes": {
|
24
|
-
"RailsEnv": null,
|
25
|
-
"AutoBundleOnDeploy": "true",
|
26
|
-
"DocumentRoot": "ROOT"
|
27
|
-
},
|
28
|
-
"Shortname": "simplejsp",
|
29
|
-
"Type": "other",
|
30
|
-
"CreatedAt": "2013-08-01T21:46:54+00:00"
|
31
|
-
}
|
32
|
-
]
|
33
|
-
}
|
34
|
-
|
35
|
-
For more information, see Apps_ in the *AWS OpsWorks User Guide*.
|
36
|
-
|
37
|
-
.. _Apps: http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps.html
|
38
|
-
|
@@ -1,43 +0,0 @@
|
|
1
|
-
**To describe commands**
|
2
|
-
|
3
|
-
The following ``describe-commands`` command describes the commands in a specified instance. ::
|
4
|
-
|
5
|
-
aws opsworks describe-commands \
|
6
|
-
--instance-id 8c2673b9-3fe5-420d-9cfa-78d875ee7687 \
|
7
|
-
--region us-east-1
|
8
|
-
|
9
|
-
Output::
|
10
|
-
|
11
|
-
{
|
12
|
-
"Commands": [
|
13
|
-
{
|
14
|
-
"Status": "successful",
|
15
|
-
"CompletedAt": "2013-07-25T18:57:47+00:00",
|
16
|
-
"InstanceId": "8c2673b9-3fe5-420d-9cfa-78d875ee7687",
|
17
|
-
"DeploymentId": "6ed0df4c-9ef7-4812-8dac-d54a05be1029",
|
18
|
-
"AcknowledgedAt": "2013-07-25T18:57:41+00:00",
|
19
|
-
"LogUrl": "https://s3.amazonaws.com/<bucket-name>/logs/008c1a91-ec59-4d51-971d-3adff54b00cc?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE &Expires=1375394373&Signature=HkXil6UuNfxTCC37EPQAa462E1E%3D&response-cache-control=private&response-content-encoding=gzip&response-content- type=text%2Fplain",
|
20
|
-
"Type": "undeploy",
|
21
|
-
"CommandId": "008c1a91-ec59-4d51-971d-3adff54b00cc",
|
22
|
-
"CreatedAt": "2013-07-25T18:57:34+00:00",
|
23
|
-
"ExitCode": 0
|
24
|
-
},
|
25
|
-
{
|
26
|
-
"Status": "successful",
|
27
|
-
"CompletedAt": "2013-07-25T18:55:40+00:00",
|
28
|
-
"InstanceId": "8c2673b9-3fe5-420d-9cfa-78d875ee7687",
|
29
|
-
"DeploymentId": "19d3121e-d949-4ff2-9f9d-94eac087862a",
|
30
|
-
"AcknowledgedAt": "2013-07-25T18:55:32+00:00",
|
31
|
-
"LogUrl": "https://s3.amazonaws.com/<bucket-name>/logs/899d3d64-0384-47b6-a586-33433aad117c?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE &Expires=1375394373&Signature=xMsJvtLuUqWmsr8s%2FAjVru0BtRs%3D&response-cache-control=private&response-content-encoding=gzip&response-conten t-type=text%2Fplain",
|
32
|
-
"Type": "deploy",
|
33
|
-
"CommandId": "899d3d64-0384-47b6-a586-33433aad117c",
|
34
|
-
"CreatedAt": "2013-07-25T18:55:29+00:00",
|
35
|
-
"ExitCode": 0
|
36
|
-
}
|
37
|
-
]
|
38
|
-
}
|
39
|
-
|
40
|
-
For more information, see `AWS OpsWorks Lifecycle Events`_ in the *AWS OpsWorks User Guide*.
|
41
|
-
|
42
|
-
.. _`AWS OpsWorks Lifecycle Events`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-events.html
|
43
|
-
|
@@ -1,52 +0,0 @@
|
|
1
|
-
**To describe deployments**
|
2
|
-
|
3
|
-
The following ``describe-deployments`` command describes the deployments in a specified stack. ::
|
4
|
-
|
5
|
-
aws opsworks --region us-east-1 describe-deployments --stack-id 38ee91e2-abdc-4208-a107-0b7168b3cc7a
|
6
|
-
|
7
|
-
*Output*::
|
8
|
-
|
9
|
-
{
|
10
|
-
"Deployments": [
|
11
|
-
{
|
12
|
-
"StackId": "38ee91e2-abdc-4208-a107-0b7168b3cc7a",
|
13
|
-
"Status": "successful",
|
14
|
-
"CompletedAt": "2013-07-25T18:57:49+00:00",
|
15
|
-
"DeploymentId": "6ed0df4c-9ef7-4812-8dac-d54a05be1029",
|
16
|
-
"Command": {
|
17
|
-
"Args": {},
|
18
|
-
"Name": "undeploy"
|
19
|
-
},
|
20
|
-
"CreatedAt": "2013-07-25T18:57:34+00:00",
|
21
|
-
"Duration": 15,
|
22
|
-
"InstanceIds": [
|
23
|
-
"8c2673b9-3fe5-420d-9cfa-78d875ee7687",
|
24
|
-
"9e588a25-35b2-4804-bd43-488f85ebe5b7"
|
25
|
-
]
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"StackId": "38ee91e2-abdc-4208-a107-0b7168b3cc7a",
|
29
|
-
"Status": "successful",
|
30
|
-
"CompletedAt": "2013-07-25T18:56:41+00:00",
|
31
|
-
"IamUserArn": "arn:aws:iam::123456789012:user/someuser",
|
32
|
-
"DeploymentId": "19d3121e-d949-4ff2-9f9d-94eac087862a",
|
33
|
-
"Command": {
|
34
|
-
"Args": {},
|
35
|
-
"Name": "deploy"
|
36
|
-
},
|
37
|
-
"InstanceIds": [
|
38
|
-
"8c2673b9-3fe5-420d-9cfa-78d875ee7687",
|
39
|
-
"9e588a25-35b2-4804-bd43-488f85ebe5b7"
|
40
|
-
],
|
41
|
-
"Duration": 72,
|
42
|
-
"CreatedAt": "2013-07-25T18:55:29+00:00"
|
43
|
-
}
|
44
|
-
]
|
45
|
-
}
|
46
|
-
|
47
|
-
**More Information**
|
48
|
-
|
49
|
-
For more information, see `Deploying Apps`_ in the *AWS OpsWorks User Guide*.
|
50
|
-
|
51
|
-
.. _`Deploying Apps`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html
|
52
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
**To describe Elastic IP instances**
|
2
|
-
|
3
|
-
The following ``describe-elastic-ips`` command describes the Elastic IP addresses in a specified instance. ::
|
4
|
-
|
5
|
-
aws opsworks --region us-east-1 describe-elastic-ips --instance-id b62f3e04-e9eb-436c-a91f-d9e9a396b7b0
|
6
|
-
|
7
|
-
*Output*::
|
8
|
-
|
9
|
-
{
|
10
|
-
"ElasticIps": [
|
11
|
-
{
|
12
|
-
"Ip": "192.0.2.0",
|
13
|
-
"Domain": "standard",
|
14
|
-
"Region": "us-west-2"
|
15
|
-
}
|
16
|
-
]
|
17
|
-
}
|
18
|
-
|
19
|
-
**More Information**
|
20
|
-
|
21
|
-
For more information, see Instances_ in the *AWS OpsWorks User Guide*.
|
22
|
-
|
23
|
-
.. _Instances: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances.html
|
24
|
-
|
@@ -1,37 +0,0 @@
|
|
1
|
-
**To describe a stack's elastic load balancers**
|
2
|
-
|
3
|
-
The following ``describe-elastic-load-balancers`` command describes a specified stack's load balancers. ::
|
4
|
-
|
5
|
-
aws opsworks --region us-west-2 describe-elastic-load-balancers --stack-id 6f4660e5-37a6-4e42-bfa0-1358ebd9c182
|
6
|
-
|
7
|
-
*Output*: This particular stack has one load balancer.
|
8
|
-
|
9
|
-
::
|
10
|
-
|
11
|
-
{
|
12
|
-
"ElasticLoadBalancers": [
|
13
|
-
{
|
14
|
-
"SubnetIds": [
|
15
|
-
"subnet-60e4ea04",
|
16
|
-
"subnet-66e1c110"
|
17
|
-
],
|
18
|
-
"Ec2InstanceIds": [],
|
19
|
-
"ElasticLoadBalancerName": "my-balancer",
|
20
|
-
"Region": "us-west-2",
|
21
|
-
"LayerId": "344973cb-bf2b-4cd0-8d93-51cd819bab04",
|
22
|
-
"AvailabilityZones": [
|
23
|
-
"us-west-2a",
|
24
|
-
"us-west-2b"
|
25
|
-
],
|
26
|
-
"VpcId": "vpc-b319f9d4",
|
27
|
-
"StackId": "6f4660e5-37a6-4e42-bfa0-1358ebd9c182",
|
28
|
-
"DnsName": "my-balancer-2094040179.us-west-2.elb.amazonaws.com"
|
29
|
-
}
|
30
|
-
]
|
31
|
-
}
|
32
|
-
|
33
|
-
**More Information**
|
34
|
-
|
35
|
-
For more information, see Apps_ in the *AWS OpsWorks User Guide*.
|
36
|
-
|
37
|
-
.. _Apps: http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps.html
|