Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aws-scripting-guy/079843d363209f5980f0 to your computer and use it in GitHub Desktop.
Save aws-scripting-guy/079843d363209f5980f0 to your computer and use it in GitHub Desktop.
aws cli file:// URI descriptor - call parent directory
# PowerShell
$regions = "eu-west-1"
foreach ($region in $regions) {
aws cloudformation create-stack `
--parameters file://$PWD\..\templates\stack_parameters.json `
--tags file://$PWD\..\templates\stack_tags.json `
--stack-policy-body file://$PWD\..\templates\stack_policy.json `
--template-body file://$PWD\..\templates\log_bucket_template.json `
--stack-name "myStack" `
--region $region `
--debug
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment