Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
opsworks
/
File Content:
create-deployment.rst
**To deploy apps and run stack commands** 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. **Deploy an App** The following ``create-deployment`` command deploys an app to a specified stack. :: aws opsworks --region us-east-1 create-deployment --stack-id cfb7e082-ad1d-4599-8e81-de1c39ab45bf --app-id 307be5c8-d55d-47b5-bd6e-7bd417c6c7eb --command "{\"Name\":\"deploy\"}" *Output*:: { "DeploymentId": "5746c781-df7f-4c87-84a7-65a119880560" } **Deploy a Rails App and Migrate the Database** The following ``create-deployment`` command deploys a Ruby on Rails app to a specified stack and migrates the database. :: aws opsworks --region us-east-1 create-deployment --stack-id cfb7e082-ad1d-4599-8e81-de1c39ab45bf --app-id 307be5c8-d55d-47b5-bd6e-7bd417c6c7eb --command "{\"Name\":\"deploy\", \"Args\":{\"migrate\":[\"true\"]}}" *Output*:: { "DeploymentId": "5746c781-df7f-4c87-84a7-65a119880560" } For more information on deployment, see `Deploying Apps`_ in the *AWS OpsWorks User Guide*. **Execute a Recipe** The following ``create-deployment`` command runs a custom recipe, ``phpapp::appsetup``, on the instances in a specified stack. :: aws opsworks --region ap-south-1 create-deployment --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --command "{\"Name\":\"execute_recipes\", \"Args\":{\"recipes\":[\"phpapp::appsetup\"]}} *Output*:: { "DeploymentId": "5cbaa7b9-4e09-4e53-aa1b-314fbd106038" } For more information, see `Run Stack Commands`_ in the *AWS OpsWorks User Guide*. **Install Dependencies** The following ``create-deployment`` command installs dependencies, such as packages or Ruby gems, on the instances in a specified stack. :: aws opsworks --region ap-south-1 create-deployment --stack-id 935450cc-61e0-4b03-a3e0-160ac817d2bb --command "{\"Name\":\"install_dependencies\"}" *Output*:: { "DeploymentId": "aef5b255-8604-4928-81b3-9b0187f962ff" } **More Information** For more information, see `Run Stack Commands`_ in the *AWS OpsWorks User Guide*. .. _`Deploying Apps`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html .. _`Run Stack Commands`: http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html
Submit
FILE
FOLDER
Name
Size
Permission
Action
assign-instance.rst
557 bytes
0644
assign-volume.rst
905 bytes
0644
associate-elastic-ip.rst
496 bytes
0644
attach-elastic-load-balancer.rst
523 bytes
0644
create-app.rst
2005 bytes
0644
create-deployment.rst
2513 bytes
0644
create-instance.rst
1042 bytes
0644
create-layer.rst
586 bytes
0644
create-stack.rst
1081 bytes
0644
create-user-profile.rst
1173 bytes
0644
delete-app.rst
525 bytes
0644
delete-instance.rst
1092 bytes
0644
delete-layer.rst
712 bytes
0644
delete-stack.rst
733 bytes
0644
delete-user-profile.rst
765 bytes
0644
deregister-elastic-ip.rst
520 bytes
0644
deregister-instance.rst
531 bytes
0644
deregister-rds-db-instance.rst
791 bytes
0644
deregister-volume.rst
638 bytes
0644
describe-apps.rst
1066 bytes
0644
describe-commands.rst
1988 bytes
0644
describe-deployments.rst
1717 bytes
0644
describe-elastic-ips.rst
608 bytes
0644
describe-elastic-load-balancers.rst
1150 bytes
0644
describe-instances.rst
3400 bytes
0644
describe-layers.rst
5773 bytes
0644
describe-load-based-auto-scaling.rst
1253 bytes
0644
describe-my-user-profile.rst
838 bytes
0644
describe-permissions.rst
903 bytes
0644
describe-raid-arrays.rst
1073 bytes
0644
describe-rds-db-instances.rst
1013 bytes
0644
describe-stack-summary.rst
770 bytes
0644
describe-stacks.rst
2271 bytes
0644
describe-timebased-auto-scaling.rst
1228 bytes
0644
describe-user-profiles.rst
922 bytes
0644
describe-volumes.rst
835 bytes
0644
detach-elastic-load-balancer.rst
521 bytes
0644
disassociate-elastic-ip.rst
454 bytes
0644
get-hostname-suggestion.rst
695 bytes
0644
reboot-instance.rst
448 bytes
0644
register-elastic-ip.rst
697 bytes
0644
register-rds-db-instance.rst
918 bytes
0644
register-volume.rst
639 bytes
0644
register.rst
7115 bytes
0644
set-load-based-auto-scaling.rst
1350 bytes
0644
set-permission.rst
1268 bytes
0644
set-time-based-auto-scaling.rst
1082 bytes
0644
start-instance.rst
851 bytes
0644
start-stack.rst
520 bytes
0644
stop-instance.rst
762 bytes
0644
stop-stack.rst
519 bytes
0644
unassign-instance.rst
524 bytes
0644
unassign-volume.rst
719 bytes
0644
update-app.rst
417 bytes
0644
update-elastic-ip.rst
436 bytes
0644
update-instance.rst
485 bytes
0644
update-layer.rst
519 bytes
0644
update-my-user-profile.rst
723 bytes
0644
update-rds-db-instance.rst
758 bytes
0644
update-volume.rst
758 bytes
0644
N4ST4R_ID | Naxtarrr