[[linux_wiki:cft_deploy_via_cli]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:cft_deploy_via_cli [2019/06/26 00:20] (current)
billdozor created
Line 1: Line 1:
 +====== CFT: Deploy Via CLI ======
 +
 +**General Information**
 +
 +Deploying Cloudformation Templates via AWS CLI.
 +
 +**Checklist**
 +  * AWS CLI configured
 +  * Cloudformation templates created
 +
 +----
 +
 +====== Deploy ======
 +
 +CFTs can be deployed via aws-cli, depending upon environment.
 +
 +Examples
 +  * Deploying a s3 bucket <code bash>aws cloudformation create-stack --stack-name s3-mynewbucket --template-body file://​s3-mynewbucket.json --parameters ParameterKey="​ProjectTag",​ParameterValue="​MyProject"​ ParameterKey="​EnvironmentName",​ParameterValue="​dev"</​code>​
 +
 +  * Deploying a security group, passing in parameters to the CFT<code bash>aws cloudformation create-stack --stack-name mysgtest --template-body file://​sg_ssh.json --parameters ParameterKey="​ProjectTag",​ParameterValue="​MyProject"​ ParameterKey="​EnvironmentName",​ParameterValue="​dev"</​code>​
 +
 +  * Deploying an IAM managed role (note the required capabilities argument)<​code bash>aws cloudformation create-stack --stack-name iam-jenkins --template-body file://​iam_role_jenkins.json --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM</​code>​
 +
 +----
  
  • linux_wiki/cft_deploy_via_cli.txt
  • Last modified: 2019/06/26 00:20
  • by billdozor