awscli 1.42.7__py3-none-any.whl → 1.44.26__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/alias.py +3 -3
- awscli/argprocess.py +7 -2
- awscli/arguments.py +1 -1
- awscli/bcdoc/docevents.py +3 -0
- awscli/clidocs.py +19 -2
- awscli/clidriver.py +55 -9
- awscli/customizations/argrename.py +1 -3
- awscli/customizations/cliinputjson.py +4 -0
- awscli/customizations/cloudformation/deploy.py +19 -3
- awscli/customizations/cloudtrail/validation.py +22 -2
- awscli/customizations/commands.py +2 -1
- awscli/customizations/eks/update_kubeconfig.py +12 -1
- awscli/customizations/emr/argumentschema.py +355 -344
- awscli/customizations/emr/createcluster.py +12 -0
- awscli/customizations/emr/emrutils.py +83 -50
- awscli/customizations/emr/helptext.py +10 -0
- awscli/customizations/emr/steputils.py +92 -52
- awscli/customizations/gamelift/uploadbuild.py +24 -11
- awscli/customizations/globalargs.py +169 -0
- awscli/customizations/paginate.py +66 -1
- awscli/customizations/s3/filegenerator.py +4 -1
- awscli/customizations/s3/fileinfo.py +4 -1
- awscli/customizations/s3/fileinfobuilder.py +6 -0
- awscli/customizations/s3/s3handler.py +9 -0
- awscli/customizations/s3/subcommands.py +147 -6
- awscli/customizations/s3/syncstrategy/base.py +9 -0
- awscli/customizations/s3/syncstrategy/caseconflict.py +96 -0
- awscli/customizations/s3/utils.py +14 -0
- awscli/customizations/scalarparse.py +48 -9
- awscli/data/cli.json +5 -0
- awscli/examples/apigateway/update-vpc-link.rst +47 -0
- 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/examples/cloudformation/create-generated-template.rst +50 -0
- awscli/examples/cloudformation/create-stack-refactor.rst +16 -0
- awscli/examples/cloudformation/delete-generated-template.rst +10 -0
- awscli/examples/cloudformation/describe-generated-template.rst +62 -0
- awscli/examples/cloudformation/describe-resource-scan.rst +38 -0
- awscli/examples/cloudformation/describe-stack-refactor.rst +20 -0
- awscli/examples/cloudformation/execute-stack-refactor.rst +10 -0
- awscli/examples/cloudformation/list-generated-templates.rst +41 -0
- awscli/examples/cloudformation/list-resource-scan-related-resources.rst +47 -0
- awscli/examples/cloudformation/list-resource-scan-resources.rst +30 -0
- awscli/examples/cloudformation/list-stack-refactor-actions.rst +71 -0
- awscli/examples/cloudformation/start-resource-scan.rst +14 -0
- awscli/examples/ec2/authorize-security-group-ingress.rst +1 -1
- awscli/examples/global_options.rst +4 -0
- awscli/examples/global_synopsis.rst +1 -0
- awscli/examples/guardduty/update-detector.rst +23 -0
- awscli/examples/ivs-realtime/get-composition.rst +7 -4
- awscli/examples/ivs-realtime/start-composition.rst +88 -3
- awscli/examples/lambda/create-function.rst +4 -4
- awscli/examples/lambda/get-function.rst +3 -3
- awscli/examples/lambda/list-functions.rst +6 -6
- awscli/examples/medical-imaging/create-datastore.rst +19 -2
- awscli/examples/medical-imaging/get-datastore.rst +24 -1
- awscli/examples/networkmanager/get-vpc-attachment.rst +1 -1
- awscli/examples/securityhub/describe-hub.rst +6 -4
- awscli/examples/servicediscovery/create-service.rst +50 -10
- awscli/examples/servicediscovery/delete-namespace.rst +18 -4
- awscli/examples/servicediscovery/delete-service-attributes.rst +15 -3
- awscli/examples/servicediscovery/delete-service.rst +13 -3
- awscli/examples/servicediscovery/deregister-instance.rst +18 -2
- awscli/examples/servicediscovery/discover-instances-revision.rst +18 -1
- awscli/examples/servicediscovery/discover-instances.rst +32 -2
- awscli/examples/servicediscovery/get-instance.rst +30 -4
- awscli/examples/servicediscovery/get-instances-health-status.rst +19 -1
- awscli/examples/servicediscovery/get-namespace.rst +40 -9
- awscli/examples/servicediscovery/get-operation.rst +32 -6
- awscli/examples/servicediscovery/get-service-attributes.rst +25 -3
- awscli/examples/servicediscovery/get-service.rst +35 -7
- awscli/examples/servicediscovery/list-instances.rst +38 -3
- awscli/examples/servicediscovery/list-namespaces.rst +45 -22
- awscli/examples/servicediscovery/list-services.rst +30 -2
- awscli/examples/servicediscovery/register-instance.rst +18 -2
- awscli/examples/servicediscovery/update-http-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-instance-custom-health-status.rst +14 -1
- awscli/examples/servicediscovery/update-private-dns-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-public-dns-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-service-attributes.rst +14 -2
- awscli/examples/servicediscovery/update-service.rst +20 -4
- awscli/handlers.py +0 -4
- awscli/paramfile.py +21 -4
- awscli/testutils.py +17 -0
- awscli/topics/config-vars.rst +1 -1
- awscli/topics/s3-case-insensitivity.rst +105 -0
- awscli/topics/topic-tags.json +16 -0
- awscli/utils.py +19 -2
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/METADATA +16 -3
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/RECORD +112 -231
- awscli/customizations/opsworks.py +0 -543
- awscli/customizations/opsworkscm.py +0 -21
- awscli/examples/elastictranscoder/cancel-job.rst +0 -8
- awscli/examples/elastictranscoder/create-job.rst +0 -94
- awscli/examples/elastictranscoder/create-pipeline.rst +0 -94
- awscli/examples/elastictranscoder/create-preset.rst +0 -141
- awscli/examples/elastictranscoder/delete-pipeline.rst +0 -13
- awscli/examples/elastictranscoder/delete-preset.rst +0 -8
- awscli/examples/elastictranscoder/list-jobs-by-pipeline.rst +0 -13
- awscli/examples/elastictranscoder/list-jobs-by-status.rst +0 -14
- awscli/examples/elastictranscoder/list-pipelines.rst +0 -84
- awscli/examples/elastictranscoder/list-presets.rst +0 -95
- awscli/examples/elastictranscoder/read-job.rst +0 -65
- awscli/examples/elastictranscoder/read-pipeline.rst +0 -59
- awscli/examples/elastictranscoder/read-preset.rst +0 -100
- awscli/examples/elastictranscoder/update-pipeline-notifications.rst +0 -52
- awscli/examples/elastictranscoder/update-pipeline-status.rst +0 -53
- awscli/examples/elastictranscoder/update-pipeline.rst +0 -95
- 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/examples/qldb/cancel-journal-kinesis-stream.rst +0 -15
- awscli/examples/qldb/create-ledger.rst +0 -43
- awscli/examples/qldb/delete-ledger.rst +0 -10
- awscli/examples/qldb/describe-journal-kinesis-stream.rst +0 -29
- awscli/examples/qldb/describe-journal-s3-export.rst +0 -30
- awscli/examples/qldb/describe-ledger.rst +0 -23
- awscli/examples/qldb/export-journal-to-s3.rst +0 -28
- awscli/examples/qldb/get-block.rst +0 -55
- awscli/examples/qldb/get-digest.rst +0 -17
- awscli/examples/qldb/get-revision.rst +0 -57
- awscli/examples/qldb/list-journal-kinesis-streams-for-ledger.rst +0 -30
- awscli/examples/qldb/list-journal-s3-exports-for-ledger.rst +0 -31
- awscli/examples/qldb/list-journal-s3-exports.rst +0 -46
- awscli/examples/qldb/list-ledgers.rst +0 -24
- awscli/examples/qldb/list-tags-for-resource.rst +0 -17
- awscli/examples/qldb/stream-journal-to-kinesis.rst +0 -46
- awscli/examples/qldb/tag-resource.rst +0 -11
- awscli/examples/qldb/untag-resource.rst +0 -11
- awscli/examples/qldb/update-ledger-permissions-mode.rst +0 -34
- awscli/examples/qldb/update-ledger.rst +0 -63
- awscli/examples/robomaker/batch-describe-simulation-job.rst +0 -150
- awscli/examples/robomaker/cancel-simulation-job.rst +0 -6
- awscli/examples/robomaker/create-deployment-job.rst +0 -37
- awscli/examples/robomaker/create-fleet.rst +0 -18
- awscli/examples/robomaker/create-robot-application-version.rst +0 -31
- awscli/examples/robomaker/create-robot-application.rst +0 -29
- awscli/examples/robomaker/create-robot.rst +0 -20
- awscli/examples/robomaker/create-simulation-application-version.rst +0 -39
- awscli/examples/robomaker/create-simulation-application.rst +0 -38
- awscli/examples/robomaker/create-simulation-job.rst +0 -43
- awscli/examples/robomaker/delete-fleet.rst +0 -7
- awscli/examples/robomaker/delete-robot-application.rst +0 -7
- awscli/examples/robomaker/delete-robot.rst +0 -7
- awscli/examples/robomaker/delete-simulation-application.rst +0 -7
- awscli/examples/robomaker/deregister-robot.rst +0 -14
- awscli/examples/robomaker/describe-deployment-job.rst +0 -38
- awscli/examples/robomaker/describe-fleet.rst +0 -28
- awscli/examples/robomaker/describe-robot-application.rst +0 -29
- awscli/examples/robomaker/describe-robot.rst +0 -21
- awscli/examples/robomaker/describe-simulation-application.rst +0 -37
- awscli/examples/robomaker/describe-simulation-job.rst +0 -45
- awscli/examples/robomaker/list-deployment-jobs.rst +0 -57
- awscli/examples/robomaker/list-fleets.rst +0 -22
- awscli/examples/robomaker/list-robot-applications.rst +0 -32
- awscli/examples/robomaker/list-robots.rst +0 -45
- awscli/examples/robomaker/list-simulation-applications.rst +0 -50
- awscli/examples/robomaker/list-simulation-jobs.rst +0 -80
- awscli/examples/robomaker/list-tags-for-resource.rst +0 -16
- awscli/examples/robomaker/register-robot.rst +0 -14
- awscli/examples/robomaker/restart-simulation-job.rst +0 -7
- awscli/examples/robomaker/sync-deployment-job.rst +0 -30
- awscli/examples/robomaker/tag-resource.rst +0 -7
- awscli/examples/robomaker/untag-resource.rst +0 -7
- awscli/examples/robomaker/update-robot-application.rst +0 -28
- awscli/examples/robomaker/update-simulation-application.rst +0 -36
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws.cmd +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws_bash_completer +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws_completer +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws_zsh_completer.sh +0 -0
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/LICENSE.txt +0 -0
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/WHEEL +0 -0
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/top_level.txt +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
**To obtain a user's per-stack AWS OpsWorks permission level**
|
|
2
|
-
|
|
3
|
-
The following example shows how to to obtain an AWS Identity and Access Management (IAM) user's permission level on a specified stack. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 describe-permissions --iam-user-arn arn:aws:iam::123456789012:user/cli-user-test --stack-id d72553d4-8727-448c-9b00-f024f0ba1b06
|
|
6
|
-
|
|
7
|
-
*Output*::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"Permissions": [
|
|
11
|
-
{
|
|
12
|
-
"StackId": "d72553d4-8727-448c-9b00-f024f0ba1b06",
|
|
13
|
-
"IamUserArn": "arn:aws:iam::123456789012:user/cli-user-test",
|
|
14
|
-
"Level": "manage",
|
|
15
|
-
"AllowSudo": true,
|
|
16
|
-
"AllowSsh": true
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
**More Information**
|
|
23
|
-
|
|
24
|
-
For more information, see `Granting Per-Stack Permissions Levels`_ in the *AWS OpsWorks User Guide*.
|
|
25
|
-
|
|
26
|
-
.. _`Granting Per-Stack Permissions Levels`: http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users-console.html
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
**To describe RAID arrays**
|
|
2
|
-
|
|
3
|
-
The following example describes the RAID arrays attached to the instances in a specified stack. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 describe-raid-arrays --stack-id d72553d4-8727-448c-9b00-f024f0ba1b06
|
|
6
|
-
|
|
7
|
-
*Output*: The following is the output for a stack with one RAID array. ::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"RaidArrays": [
|
|
11
|
-
{
|
|
12
|
-
"StackId": "d72553d4-8727-448c-9b00-f024f0ba1b06",
|
|
13
|
-
"AvailabilityZone": "us-west-2a",
|
|
14
|
-
"Name": "Created for php-app1",
|
|
15
|
-
"NumberOfDisks": 2,
|
|
16
|
-
"InstanceId": "9f14adbc-ced5-43b6-bf01-e7d0db6cf2f7",
|
|
17
|
-
"RaidLevel": 0,
|
|
18
|
-
"VolumeType": "standard",
|
|
19
|
-
"RaidArrayId": "f2d4e470-5972-4676-b1b8-bae41ec3e51c",
|
|
20
|
-
"Device": "/dev/md0",
|
|
21
|
-
"MountPoint": "/mnt/workspace",
|
|
22
|
-
"CreatedAt": "2015-02-26T23:53:09+00:00",
|
|
23
|
-
"Size": 100
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
For more information, see `EBS Volumes`_ in the *AWS OpsWorks User Guide*.
|
|
29
|
-
|
|
30
|
-
.. _`EBS Volumes`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html#workinglayers-basics-edit-ebs
|
|
31
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
**To describe a stack's registered Amazon RDS instances**
|
|
2
|
-
|
|
3
|
-
The following example describes the Amazon RDS instances registered with a specified stack. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 describe-rds-db-instances --stack-id d72553d4-8727-448c-9b00-f024f0ba1b06
|
|
6
|
-
|
|
7
|
-
*Output*: The following is the output for a stack with one registered RDS instance. ::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"RdsDbInstances": [
|
|
11
|
-
{
|
|
12
|
-
"Engine": "mysql",
|
|
13
|
-
"StackId": "d72553d4-8727-448c-9b00-f024f0ba1b06",
|
|
14
|
-
"MissingOnRds": false,
|
|
15
|
-
"Region": "us-west-2",
|
|
16
|
-
"RdsDbInstanceArn": "arn:aws:rds:us-west-2:123456789012:db:clitestdb",
|
|
17
|
-
"DbPassword": "*****FILTERED*****",
|
|
18
|
-
"Address": "clitestdb.cdlqlk5uwd0k.us-west-2.rds.amazonaws.com",
|
|
19
|
-
"DbUser": "cliuser",
|
|
20
|
-
"DbInstanceIdentifier": "clitestdb"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
For more information, see `Resource Management`_ in the *AWS OpsWorks User Guide*.
|
|
27
|
-
|
|
28
|
-
.. _`Resource Management`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html
|
|
29
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
**To return the provisioning parameters for a stack**
|
|
2
|
-
|
|
3
|
-
The following ``describe-stack-provisioning-parameters`` example returns the provisioning parameters for a specified stack. Provisioning parameters include settings such as the agent installation location and public key that OpsWorks uses to manage the agent on instances in a stack. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks describe-stack-provisioning-parameters \
|
|
6
|
-
--stack-id 62744d97-6faf-4ecb-969b-a086fEXAMPLE
|
|
7
|
-
|
|
8
|
-
Output::
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
"AgentInstallerUrl": "https://opsworks-instance-agent-us-west-2.s3.amazonaws.com/ID_number/opsworks-agent-installer.tgz",
|
|
12
|
-
"Parameters": {
|
|
13
|
-
"agent_installer_base_url": "https://opsworks-instance-agent-us-west-2.s3.amazonaws.com",
|
|
14
|
-
"agent_installer_tgz": "opsworks-agent-installer.tgz",
|
|
15
|
-
"assets_download_bucket": "opsworks-instance-assets-us-west-2.s3.amazonaws.com",
|
|
16
|
-
"charlie_public_key": "-----BEGIN PUBLIC KEY-----PUBLIC_KEY_EXAMPLE\n-----END PUBLIC KEY-----",
|
|
17
|
-
"instance_service_endpoint": "opsworks-instance-service.us-west-2.amazonaws.com",
|
|
18
|
-
"instance_service_port": "443",
|
|
19
|
-
"instance_service_region": "us-west-2",
|
|
20
|
-
"instance_service_ssl_verify_peer": "true",
|
|
21
|
-
"instance_service_use_ssl": "true",
|
|
22
|
-
"ops_works_endpoint": "opsworks.us-west-2.amazonaws.com",
|
|
23
|
-
"ops_works_port": "443",
|
|
24
|
-
"ops_works_region": "us-west-2",
|
|
25
|
-
"ops_works_ssl_verify_peer": "true",
|
|
26
|
-
"ops_works_use_ssl": "true",
|
|
27
|
-
"verbose": "false",
|
|
28
|
-
"wait_between_runs": "30"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
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,27 +0,0 @@
|
|
|
1
|
-
**To describe a stack's configuration**
|
|
2
|
-
|
|
3
|
-
The following ``describe-stack-summary`` command returns a summary of the specified stack's configuration. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 describe-stack-summary --stack-id 8c428b08-a1a1-46ce-a5f8-feddc43771b8
|
|
6
|
-
|
|
7
|
-
*Output*::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"StackSummary": {
|
|
11
|
-
"StackId": "8c428b08-a1a1-46ce-a5f8-feddc43771b8",
|
|
12
|
-
"InstancesCount": {
|
|
13
|
-
"Booting": 1
|
|
14
|
-
},
|
|
15
|
-
"Name": "CLITest",
|
|
16
|
-
"AppsCount": 1,
|
|
17
|
-
"LayersCount": 1,
|
|
18
|
-
"Arn": "arn:aws:opsworks:us-west-2:123456789012:stack/8c428b08-a1a1-46ce-a5f8-feddc43771b8/"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
**More Information**
|
|
23
|
-
|
|
24
|
-
For more information, see `Stacks`_ in the *AWS OpsWorks User Guide*.
|
|
25
|
-
|
|
26
|
-
.. _`Stacks`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks.html
|
|
27
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
**To describe stacks**
|
|
2
|
-
|
|
3
|
-
The following ``describe-stacks`` command describes an account's stacks. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 describe-stacks
|
|
6
|
-
|
|
7
|
-
*Output*::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"Stacks": [
|
|
11
|
-
{
|
|
12
|
-
"ServiceRoleArn": "arn:aws:iam::444455556666:role/aws-opsworks-service-role",
|
|
13
|
-
"StackId": "aeb7523e-7c8b-49d4-b866-03aae9d4fbcb",
|
|
14
|
-
"DefaultRootDeviceType": "instance-store",
|
|
15
|
-
"Name": "TomStack-sd",
|
|
16
|
-
"ConfigurationManager": {
|
|
17
|
-
"Version": "11.4",
|
|
18
|
-
"Name": "Chef"
|
|
19
|
-
},
|
|
20
|
-
"UseCustomCookbooks": true,
|
|
21
|
-
"CustomJson": "{\n \"tomcat\": {\n \"base_version\": 7,\n \"java_opts\": \"-Djava.awt.headless=true -Xmx256m\"\n },\n \"datasources\": {\n \"ROOT\": \"jdbc/mydb\"\n }\n}",
|
|
22
|
-
"Region": "us-east-1",
|
|
23
|
-
"DefaultInstanceProfileArn": "arn:aws:iam::444455556666:instance-profile/aws-opsworks-ec2-role",
|
|
24
|
-
"CustomCookbooksSource": {
|
|
25
|
-
"Url": "git://github.com/example-repo/tomcustom.git",
|
|
26
|
-
"Type": "git"
|
|
27
|
-
},
|
|
28
|
-
"DefaultAvailabilityZone": "us-east-1a",
|
|
29
|
-
"HostnameTheme": "Layer_Dependent",
|
|
30
|
-
"Attributes": {
|
|
31
|
-
"Color": "rgb(45, 114, 184)"
|
|
32
|
-
},
|
|
33
|
-
"DefaultOs": "Amazon Linux",
|
|
34
|
-
"CreatedAt": "2013-08-01T22:53:42+00:00"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"ServiceRoleArn": "arn:aws:iam::444455556666:role/aws-opsworks-service-role",
|
|
38
|
-
"StackId": "40738975-da59-4c5b-9789-3e422f2cf099",
|
|
39
|
-
"DefaultRootDeviceType": "instance-store",
|
|
40
|
-
"Name": "MyStack",
|
|
41
|
-
"ConfigurationManager": {
|
|
42
|
-
"Version": "11.4",
|
|
43
|
-
"Name": "Chef"
|
|
44
|
-
},
|
|
45
|
-
"UseCustomCookbooks": false,
|
|
46
|
-
"Region": "us-east-1",
|
|
47
|
-
"DefaultInstanceProfileArn": "arn:aws:iam::444455556666:instance-profile/aws-opsworks-ec2-role",
|
|
48
|
-
"CustomCookbooksSource": {},
|
|
49
|
-
"DefaultAvailabilityZone": "us-east-1a",
|
|
50
|
-
"HostnameTheme": "Layer_Dependent",
|
|
51
|
-
"Attributes": {
|
|
52
|
-
"Color": "rgb(45, 114, 184)"
|
|
53
|
-
},
|
|
54
|
-
"DefaultOs": "Amazon Linux",
|
|
55
|
-
"CreatedAt": "2013-10-25T19:24:30+00:00"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
**More Information**
|
|
61
|
-
|
|
62
|
-
For more information, see `Stacks`_ in the *AWS OpsWorks User Guide*.
|
|
63
|
-
|
|
64
|
-
.. _`Stacks`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks.html
|
|
65
|
-
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
**To describe the time-based scaling configuration of an instance**
|
|
2
|
-
|
|
3
|
-
The following example describes a specified instance's time-based scaling configuration.
|
|
4
|
-
The instance is identified by its instance ID, which you can find on the instances's
|
|
5
|
-
details page or by running ``describe-instances``. ::
|
|
6
|
-
|
|
7
|
-
aws opsworks describe-time-based-auto-scaling --region us-east-1 --instance-ids 701f2ffe-5d8e-4187-b140-77b75f55de8d
|
|
8
|
-
|
|
9
|
-
*Output*: The example has a single time-based instance. ::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"TimeBasedAutoScalingConfigurations": [
|
|
13
|
-
{
|
|
14
|
-
"InstanceId": "701f2ffe-5d8e-4187-b140-77b75f55de8d",
|
|
15
|
-
"AutoScalingSchedule": {
|
|
16
|
-
"Monday": {
|
|
17
|
-
"11": "on",
|
|
18
|
-
"10": "on",
|
|
19
|
-
"13": "on",
|
|
20
|
-
"12": "on"
|
|
21
|
-
},
|
|
22
|
-
"Tuesday": {
|
|
23
|
-
"11": "on",
|
|
24
|
-
"10": "on",
|
|
25
|
-
"13": "on",
|
|
26
|
-
"12": "on"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
**More Information**
|
|
36
|
-
|
|
37
|
-
For more information, see `How Automatic Time-based Scaling Works`_ in the *AWS OpsWorks User Guide*.
|
|
38
|
-
|
|
39
|
-
.. _`How Automatic Time-based Scaling Works`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html#workinginstances-autoscaling-timebased
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
**To describe user profiles**
|
|
2
|
-
|
|
3
|
-
The following ``describe-user-profiles`` command describes the account's user profiles. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 describe-user-profiles
|
|
6
|
-
|
|
7
|
-
*Output*::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"UserProfiles": [
|
|
11
|
-
{
|
|
12
|
-
"IamUserArn": "arn:aws:iam::123456789012:user/someuser",
|
|
13
|
-
"SshPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAkOuP7i80q3Cko...",
|
|
14
|
-
"AllowSelfManagement": true,
|
|
15
|
-
"Name": "someuser",
|
|
16
|
-
"SshUsername": "someuser"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"IamUserArn": "arn:aws:iam::123456789012:user/cli-user-test",
|
|
20
|
-
"AllowSelfManagement": true,
|
|
21
|
-
"Name": "cli-user-test",
|
|
22
|
-
"SshUsername": "myusername"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
**More Information**
|
|
28
|
-
|
|
29
|
-
For more information, see `Managing AWS OpsWorks Users`_ in the *AWS OpsWorks User Guide*.
|
|
30
|
-
|
|
31
|
-
.. _`Managing AWS OpsWorks Users`: http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users-manage.html
|
|
32
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
**To describe a stack's volumes**
|
|
2
|
-
|
|
3
|
-
The following example describes a stack's EBS volumes. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 describe-volumes --stack-id 8c428b08-a1a1-46ce-a5f8-feddc43771b8
|
|
6
|
-
|
|
7
|
-
*Output*::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"Volumes": [
|
|
11
|
-
{
|
|
12
|
-
"Status": "in-use",
|
|
13
|
-
"AvailabilityZone": "us-west-2a",
|
|
14
|
-
"Name": "CLITest",
|
|
15
|
-
"InstanceId": "dfe18b02-5327-493d-91a4-c5c0c448927f",
|
|
16
|
-
"VolumeType": "standard",
|
|
17
|
-
"VolumeId": "56b66fbd-e1a1-4aff-9227-70f77118d4c5",
|
|
18
|
-
"Device": "/dev/sdi",
|
|
19
|
-
"Ec2VolumeId": "vol-295c1638",
|
|
20
|
-
"MountPoint": "/mnt/myvolume",
|
|
21
|
-
"Size": 1
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
**More Information**
|
|
27
|
-
|
|
28
|
-
For more information, see `Resource Management`_ in the *AWS OpsWorks User Guide*.
|
|
29
|
-
|
|
30
|
-
.. _`Resource Management`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html
|
|
31
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
**To detach a load balancer from its layer**
|
|
2
|
-
|
|
3
|
-
The following example detaches a load balancer, identified by its name, from its layer. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 detach-elastic-load-balancer --elastic-load-balancer-name Java-LB --layer-id 888c5645-09a5-4d0e-95a8-812ef1db76a4
|
|
6
|
-
|
|
7
|
-
*Output*: None.
|
|
8
|
-
|
|
9
|
-
**More Information**
|
|
10
|
-
|
|
11
|
-
For more information, see `Elastic Load Balancing`_ in the *AWS OpsWorks User Guide*.
|
|
12
|
-
|
|
13
|
-
.. _`Elastic Load Balancing`: http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html
|
|
14
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
**To disassociate an Elastic IP address from an instance**
|
|
2
|
-
|
|
3
|
-
The following example disassociates an Elastic IP address from a specified instance. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 disassociate-elastic-ip --elastic-ip 54.148.130.96
|
|
6
|
-
|
|
7
|
-
*Output*: None.
|
|
8
|
-
|
|
9
|
-
**More Information**
|
|
10
|
-
|
|
11
|
-
For more information, see `Resource Management`_ in the *AWS OpsWorks User Guide*.
|
|
12
|
-
|
|
13
|
-
.. _`Resource Management`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html
|
|
14
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
**To get the next hostname for a layer**
|
|
2
|
-
|
|
3
|
-
The following example gets the next generated hostname for a specified layer. The layer used for
|
|
4
|
-
this example is a Java Application Server layer with one instance. The stack's hostname theme is
|
|
5
|
-
the default, Layer_Dependent. ::
|
|
6
|
-
|
|
7
|
-
aws opsworks --region us-east-1 get-hostname-suggestion --layer-id 888c5645-09a5-4d0e-95a8-812ef1db76a4
|
|
8
|
-
|
|
9
|
-
*Output*::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"Hostname": "java-app2",
|
|
13
|
-
"LayerId": "888c5645-09a5-4d0e-95a8-812ef1db76a4"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
**More Information**
|
|
17
|
-
|
|
18
|
-
For more information, see `Create a New Stack`_ in the *AWS OpsWorks User Guide*.
|
|
19
|
-
|
|
20
|
-
.. _`Create a New Stack`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html
|
|
21
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
**To reboot an instance**
|
|
2
|
-
|
|
3
|
-
The following example reboots an instance. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks --region us-east-1 reboot-instance --instance-id dfe18b02-5327-493d-91a4-c5c0c448927f
|
|
6
|
-
|
|
7
|
-
*Output*: None.
|
|
8
|
-
|
|
9
|
-
**More Information**
|
|
10
|
-
|
|
11
|
-
For more information, see `Rebooting an Instance`_ in the *AWS OpsWorks User Guide*.
|
|
12
|
-
|
|
13
|
-
.. _`Rebooting an Instance`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html#workinginstances-starting-reboot
|
|
14
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
**To register an Elastic IP address with a stack**
|
|
2
|
-
|
|
3
|
-
The following example registers an Elastic IP address, identified by its IP address, with a specified stack.
|
|
4
|
-
|
|
5
|
-
**Note:** The Elastic IP address must be in the same region as the stack. ::
|
|
6
|
-
|
|
7
|
-
aws opsworks register-elastic-ip --region us-east-1 --stack-id d72553d4-8727-448c-9b00-f024f0ba1b06 --elastic-ip 54.148.130.96
|
|
8
|
-
|
|
9
|
-
*Output* ::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"ElasticIp": "54.148.130.96"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
**More Information**
|
|
16
|
-
|
|
17
|
-
For more information, see `Registering Elastic IP Addresses with a Stack`_ in the *OpsWorks User Guide*.
|
|
18
|
-
|
|
19
|
-
.. _`Registering Elastic IP Addresses with a Stack`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources-reg.html#resources-reg-eip
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
**To register an Amazon RDS instance with a stack**
|
|
2
|
-
|
|
3
|
-
The following example registers an Amazon RDS DB instance, identified by its Amazon Resource Name (ARN), with a specified stack.
|
|
4
|
-
It also specifies the instance's master username and password. Note that AWS OpsWorks does not validate either of these
|
|
5
|
-
values. If either one is incorrect, your application will not be able to connect to the database. ::
|
|
6
|
-
|
|
7
|
-
aws opsworks register-rds-db-instance --region us-east-1 --stack-id d72553d4-8727-448c-9b00-f024f0ba1b06 --rds-db-instance-arn arn:aws:rds:us-west-2:123456789012:db:clitestdb --db-user cliuser --db-password some23!pwd
|
|
8
|
-
|
|
9
|
-
*Output*: None.
|
|
10
|
-
|
|
11
|
-
**More Information**
|
|
12
|
-
|
|
13
|
-
For more information, see `Registering Amazon RDS Instances with a Stack`_ in the *AWS OpsWorks User Guide*.
|
|
14
|
-
|
|
15
|
-
.. _`Registering Amazon RDS Instances with a Stack`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources-reg.html#resources-reg-rds
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
**To register an Amazon EBS volume with a stack**
|
|
2
|
-
|
|
3
|
-
The following example registers an Amazon EBS volume, identified by its volume ID, with a specified stack. ::
|
|
4
|
-
|
|
5
|
-
aws opsworks register-volume --region us-east-1 --stack-id d72553d4-8727-448c-9b00-f024f0ba1b06 --ec-2-volume-id vol-295c1638
|
|
6
|
-
|
|
7
|
-
*Output*::
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"VolumeId": "ee08039c-7cb7-469f-be10-40fb7f0c05e8"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
**More Information**
|
|
15
|
-
|
|
16
|
-
For more information, see `Registering Amazon EBS Volumes with a Stack`_ in the *AWS OpsWorks User Guide*.
|
|
17
|
-
|
|
18
|
-
.. _`Registering Amazon EBS Volumes with a Stack`: http://docs.aws.amazon.com/opsworks/latest/userguide/resources-reg.html#resources-reg-ebs
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
**To register instances with a stack**
|
|
2
|
-
|
|
3
|
-
The following examples show a variety of ways to register instances with a stack that were created outside of AWS Opsworks.
|
|
4
|
-
You can run ``register`` from the instance to be registered, or from a separate workstation.
|
|
5
|
-
For more information, see `Registering Amazon EC2 and On-premises Instances`_ in the *AWS OpsWorks User Guide*.
|
|
6
|
-
|
|
7
|
-
.. _`Registering Amazon EC2 and On-premises Instances`: http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register-registering.html
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
**Note**: For brevity, the examples omit the ``region`` argument.
|
|
11
|
-
|
|
12
|
-
*To register an Amazon EC2 instance*
|
|
13
|
-
|
|
14
|
-
To indicate that you are registering an EC2 instance, set the ``--infrastructure-class`` argument
|
|
15
|
-
to ``ec2``.
|
|
16
|
-
|
|
17
|
-
The following example registers an EC2 instance with the specified stack from a separate workstation.
|
|
18
|
-
The instance is identified by its EC2 ID, ``i-12345678``. The example uses the workstation's default SSH username and attempts
|
|
19
|
-
to log in to the instance using authentication techniques that do not require a password,
|
|
20
|
-
such as a default private SSH key. If that fails, ``register`` queries for the password. ::
|
|
21
|
-
|
|
22
|
-
aws opsworks register --infrastructure-class=ec2 --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb i-12345678
|
|
23
|
-
|
|
24
|
-
The following example registers an EC2 instance with the specifed stack from a separate workstation.
|
|
25
|
-
It uses the ``--ssh-username`` and ``--ssh-private-key`` arguments to explicitly
|
|
26
|
-
specify the SSH username and private key file that the command uses to log into the instance.
|
|
27
|
-
``ec2-user`` is the standard username for Amazon Linux instances. Use ``ubuntu`` for Ubuntu instances. ::
|
|
28
|
-
|
|
29
|
-
aws opsworks register --infrastructure-class=ec2 --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --ssh-username ec2-user --ssh-private-key ssh_private_key i-12345678
|
|
30
|
-
|
|
31
|
-
The following example registers the EC2 instance that is running the ``register`` command.
|
|
32
|
-
Log in to the instance with SSH and run ``register`` with the ``--local`` argument instead of an instance ID or hostname. ::
|
|
33
|
-
|
|
34
|
-
aws opsworks register --infrastructure-class ec2 --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --local
|
|
35
|
-
|
|
36
|
-
*To register an on-premises instance*
|
|
37
|
-
|
|
38
|
-
To indicate that you are registering an on-premises instance, set the ``--infrastructure-class`` argument
|
|
39
|
-
to ``on-premises``.
|
|
40
|
-
|
|
41
|
-
The following example registers an existing on-premises instance with a specified stack from a separate workstation.
|
|
42
|
-
The instance is identified by its IP address, ``192.0.2.3``. The example uses the workstation's default SSH username and attempts
|
|
43
|
-
to log in to the instance using authentication techniques that do not require a password,
|
|
44
|
-
such as a default private SSH key. If that fails, ``register`` queries for the password. ::
|
|
45
|
-
|
|
46
|
-
aws opsworks register --infrastructure-class on-premises --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb 192.0.2.3
|
|
47
|
-
|
|
48
|
-
The following example registers an on-premises instance with a specified stack from a separate workstation.
|
|
49
|
-
The instance is identified by its hostname, ``host1``. The ``--override-...`` arguments direct AWS OpsWorks
|
|
50
|
-
to display ``webserver1`` as the host name and ``192.0.2.3`` and ``10.0.0.2`` as the instance's public and
|
|
51
|
-
private IP addresses, respectively. ::
|
|
52
|
-
|
|
53
|
-
aws opsworks register --infrastructure-class on-premises --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --override-hostname webserver1 --override-public-ip 192.0.2.3 --override-private-ip 10.0.0.2 host1
|
|
54
|
-
|
|
55
|
-
The following example registers an on-premises instance with a specified stack from a separate workstation.
|
|
56
|
-
The instance is identified by its IP address. ``register`` logs into the instance using the specified SSH username and private key file. ::
|
|
57
|
-
|
|
58
|
-
aws opsworks register --infrastructure-class on-premises --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --ssh-username admin --ssh-private-key ssh_private_key 192.0.2.3
|
|
59
|
-
|
|
60
|
-
The following example registers an existing on-premises instance with a specified stack from a separate workstation.
|
|
61
|
-
The command logs into the instance using a custom SSH command string that specifies
|
|
62
|
-
the SSH password and the instance's IP address. ::
|
|
63
|
-
|
|
64
|
-
aws opsworks register --infrastructure-class on-premises --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --override-ssh "sshpass -p 'mypassword' ssh your-user@192.0.2.3"
|
|
65
|
-
|
|
66
|
-
The following example registers the on-premises instance that is running the ``register`` command.
|
|
67
|
-
Log in to the instance with SSH and run ``register`` with the ``--local`` argument instead of an instance ID or hostname. ::
|
|
68
|
-
|
|
69
|
-
aws opsworks register --infrastructure-class on-premises --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --local
|
|
70
|
-
|
|
71
|
-
*Output*: The following is typical output for registering an EC2 instance.
|
|
72
|
-
|
|
73
|
-
::
|
|
74
|
-
|
|
75
|
-
Warning: Permanently added '52.11.41.206' (ECDSA) to the list of known hosts.
|
|
76
|
-
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
77
|
-
Dload Upload Total Spent Left Speed
|
|
78
|
-
100 6403k 100 6403k 0 0 2121k 0 0:00:03 0:00:03 --:--:-- 2121k
|
|
79
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Initializing AWS OpsWorks environment
|
|
80
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Running on Ubuntu
|
|
81
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Checking if OS is supported
|
|
82
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Running on supported OS
|
|
83
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Setup motd
|
|
84
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Executing: ln -sf --backup /etc/motd.opsworks-static /etc/motd
|
|
85
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Enabling multiverse repositories
|
|
86
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Customizing APT environment
|
|
87
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Installing system packages
|
|
88
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Executing: dpkg --configure -a
|
|
89
|
-
[Tue, 24 Feb 2015 20:48:37 +0000] opsworks-init: Executing with retry: apt-get update
|
|
90
|
-
[Tue, 24 Feb 2015 20:49:13 +0000] opsworks-init: Executing: apt-get install -y ruby ruby-dev libicu-dev libssl-dev libxslt-dev libxml2-dev libyaml-dev monit
|
|
91
|
-
[Tue, 24 Feb 2015 20:50:13 +0000] opsworks-init: Using assets bucket from environment: 'opsworks-instance-assets-us-east-1.s3.amazonaws.com'.
|
|
92
|
-
[Tue, 24 Feb 2015 20:50:13 +0000] opsworks-init: Installing Ruby for the agent
|
|
93
|
-
[Tue, 24 Feb 2015 20:50:13 +0000] opsworks-init: Executing: /tmp/opsworks-agent-installer.YgGq8wF3UUre6yDy/opsworks-agent-installer/opsworks-agent/bin/installer_wrapper.sh -r -R opsworks-instance-assets-us-east-1.s3.amazonaws.com
|
|
94
|
-
[Tue, 24 Feb 2015 20:50:44 +0000] opsworks-init: Starting the installer
|
|
95
|
-
Instance successfully registered. Instance ID: 4d6d1710-ded9-42a1-b08e-b043ad7af1e2
|
|
96
|
-
Connection to 52.11.41.206 closed.
|
|
97
|
-
|
|
98
|
-
**More Information**
|
|
99
|
-
|
|
100
|
-
For more information, see `Registering an Instance with an AWS OpsWorks Stack`_ in the *AWS OpsWorks User Guide*.
|
|
101
|
-
|
|
102
|
-
.. _`Registering an Instance with an AWS OpsWorks Stack`: http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register.html
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
**To set the load-based scaling configuration for a layer**
|
|
2
|
-
|
|
3
|
-
The following example enables load-based scaling for a specified layer and sets the configuration
|
|
4
|
-
for that layer.
|
|
5
|
-
You must use ``create-instance`` to add load-based instances to the layer. ::
|
|
6
|
-
|
|
7
|
-
aws opsworks --region us-east-1 set-load-based-auto-scaling --layer-id 523569ae-2faf-47ac-b39e-f4c4b381f36d --enable --up-scaling file://upscale.json --down-scaling file://downscale.json
|
|
8
|
-
|
|
9
|
-
The example puts the upscaling threshold settings in a separate file in the working directory named ``upscale.json``, which contains the following. ::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"InstanceCount": 2,
|
|
13
|
-
"ThresholdsWaitTime": 3,
|
|
14
|
-
"IgnoreMetricsTime": 3,
|
|
15
|
-
"CpuThreshold": 85,
|
|
16
|
-
"MemoryThreshold": 85,
|
|
17
|
-
"LoadThreshold": 85
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
The example puts the downscaling threshold settings in a separate file in the working directory named ``downscale.json``, which contains the following. ::
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
"InstanceCount": 2,
|
|
24
|
-
"ThresholdsWaitTime": 3,
|
|
25
|
-
"IgnoreMetricsTime": 3,
|
|
26
|
-
"CpuThreshold": 35,
|
|
27
|
-
"MemoryThreshold": 30,
|
|
28
|
-
"LoadThreshold": 30
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
*Output*: None.
|
|
32
|
-
|
|
33
|
-
**More Information**
|
|
34
|
-
|
|
35
|
-
For more information, see `Using Automatic Load-based Scaling`_ in the *AWS OpsWorks User Guide*.
|
|
36
|
-
|
|
37
|
-
.. _`Using Automatic Load-based Scaling`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling-loadbased.html
|
|
38
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
**To grant per-stack AWS OpsWorks permission levels**
|
|
2
|
-
|
|
3
|
-
When you import an AWS Identity and Access Management (IAM) user into AWS OpsWorks by calling ``create-user-profile``, the user has only those
|
|
4
|
-
permissions that are granted by the attached IAM policies.
|
|
5
|
-
You can grant AWS OpsWorks permissions by modifying a user's policies.
|
|
6
|
-
However, it is often easier to import a user and then use the ``set-permission`` command to grant
|
|
7
|
-
the user one of the standard permission levels for each stack to which the user will need access.
|
|
8
|
-
|
|
9
|
-
The following example grants permission for the specified stack for a user, who
|
|
10
|
-
is identified by Amazon Resource Name (ARN). The example grants the user a Manage permissions level, with sudo and SSH privileges on the stack's
|
|
11
|
-
instances. ::
|
|
12
|
-
|
|
13
|
-
aws opsworks set-permission --region us-east-1 --stack-id 71c7ca72-55ae-4b6a-8ee1-a8dcded3fa0f --level manage --iam-user-arn arn:aws:iam::123456789102:user/cli-user-test --allow-ssh --allow-sudo
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*Output*: None.
|
|
17
|
-
|
|
18
|
-
**More Information**
|
|
19
|
-
|
|
20
|
-
For more information, see `Granting AWS OpsWorks Users Per-Stack Permissions`_ in the *AWS OpsWorks User Guide*.
|
|
21
|
-
|
|
22
|
-
.. _`Granting AWS OpsWorks Users Per-Stack Permissions`: http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users-console.html
|
|
23
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
**To set the time-based scaling configuration for a layer**
|
|
2
|
-
|
|
3
|
-
The following example sets the time-based configuration for a specified instance.
|
|
4
|
-
You must first use ``create-instance`` to add the instance to the layer. ::
|
|
5
|
-
|
|
6
|
-
aws opsworks --region us-east-1 set-time-based-auto-scaling --instance-id 69b6237c-08c0-4edb-a6af-78f3d01cedf2 --auto-scaling-schedule file://schedule.json
|
|
7
|
-
|
|
8
|
-
The example puts the schedule in a separate file in the working directory named ``schedule.json``.
|
|
9
|
-
For this example, the instance is on for a few hours around midday UTC (Coordinated Universal Time) on Monday and Tuesday. ::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"Monday": {
|
|
13
|
-
"10": "on",
|
|
14
|
-
"11": "on",
|
|
15
|
-
"12": "on",
|
|
16
|
-
"13": "on"
|
|
17
|
-
},
|
|
18
|
-
"Tuesday": {
|
|
19
|
-
"10": "on",
|
|
20
|
-
"11": "on",
|
|
21
|
-
"12": "on",
|
|
22
|
-
"13": "on"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
*Output*: None.
|
|
27
|
-
|
|
28
|
-
**More Information**
|
|
29
|
-
|
|
30
|
-
For more information, see `Using Automatic Time-based Scaling`_ in the *AWS OpsWorks User Guide*.
|
|
31
|
-
|
|
32
|
-
.. _`Using Automatic Time-based Scaling`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling-timebased.html
|
|
33
|
-
|