aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.09k stars 4.01k forks source link

AWS CLI for CloudFormation to allow using a CFN Config File as used by Codepipeline #5316

Open JohnPreston opened 4 years ago

JohnPreston commented 4 years ago

Sorry if that is already opened elsewhere

I create CFN Template Configuration files (Parameters, StackPolicies, Tags etc.) to deploy stacks with CodePipeline. I would like to be able to run aws cloudformation create-stack or aws cloudformation deploy and input that file for API parameters.

{
"Parameters": {"Key": "Value"},
"Tags": {},
}

Describe the solution you'd like aws cloudformation create-stack --config-file file://config.json

Additional context Reference: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-cfn-artifacts.html

kdaily commented 4 years ago

Hi @JohnPreston, thanks for the request. It does look like it was requested a while back (#2937) but I'm going to investigate it further!

hauntingEcho commented 2 years ago

--cli-input-json is a parameter for a lot of awscli commands - I'd argue that's what's needed for aws cloudformation deploy.

aws cloudformation create-stack and aws cloudformation update-stack do allow for --cli-input-json, but they require a different format than CodePipeline can use. The parameter/tag formats for aws cloudformation deploy line up better with the format expected for CodePipeline files, though.