All Questions
Tagged with aws-cli aws-cloudformation
151 questions
0
votes
1
answer
41
views
Why does my AWS CodeBuild project fail to create a CloudFormation stack with the error "Template file not found"?
I am working on automating the deployment of a static website using AWS CodePipeline and CodeBuild, along with CloudFormation. However, I am encountering some issues in my buildspec.yml configuration.
...
0
votes
1
answer
90
views
AWS KMS Key Created by CloudFormation Immediately Enters Pending Deletion State
Background
I'm running a bash script to set up AWS Roles Anywhere using a KMS key created via a CloudFormation stack. The script first deploys the KMS key, then uses it to sign a Certificate Authority ...
0
votes
1
answer
501
views
What is the better way to perform resource already exist in AWS secret manager
I am trying to create the secret in secret manager using CFT, but there is no direct way in CFT to check If the secret already exist and then If it doesn't exists then create the secret. (Basically ...
0
votes
2
answers
741
views
How to set AWS Cognito custom user pool attributes as read-only for a client?
I'm having problems setting my custom attributes to read-only with CDK/CloudFormation/CLI. They are defined in the user pool and mutable and I'm able to do it in the console just fine but not in any ...
0
votes
1
answer
58
views
AWS CLI describes instances of particular cloudformation stack
I have a cloudformation stack creates multiple EC2. Is there a CLI command that describes instances of a particular cloudformation stack?
-1
votes
2
answers
412
views
Sample CloudFormation code to enable Cross region replication on ECR with filter
I have to enable a cross-region replication for AWS ECR through cloud formation. For this, I have to add a rule and filter (optional ). Without the filter, I'll replicate all ECR to the target region. ...
1
vote
1
answer
492
views
cloudformation update-stack with --cli-input-json and TemplateBody
I am trying to use aws cloudformation update-stack with --cli-input-json but I also want the "TemplateBody":"[...]" value to point to a file like I can do with --template-body file:...
0
votes
0
answers
431
views
aws event target didn't update custom json input
Facing issue related to adding custom JSON input in aws event target as we know aws didnt allow to add event pattern with scheduled expression in event rule so we have to add custom Input in target ...
0
votes
1
answer
1k
views
aws cloudformation deploy and --parameter-overrides syntax
I'm using aws cli v1 (aws-cli/1.29.8 Python/3.9.17 Linux/4.14.291-218.527.amzn2.x86_64 exec-env/AWS_ECS_EC2 botocore/1.31.) within CodeBuild, and reading the documentation for the --parameter-...
0
votes
3
answers
3k
views
CloudWatch Logs role ARN must be set in account settings to enable logging
I have an API Gateway that I'm trying to deploy to dev, and I keep getting this error about CloudWatch logging. I can't find how to properly set up the permissions to deploy. Hopefully somebody has ...
1
vote
1
answer
161
views
Unable to use AllowedPattern for CloudFormation CommaDelimitedList parameter
Note that this question is not the same as Enforce AllowedPattern for parameter of type CommaDelimitedList in Cloudformation script, because that question was written before AllowedPattern was ...
0
votes
1
answer
448
views
AWS SSO: Assign existing users to specific accounts
I use IAM identity center(SSO previously) to manage users and accounts.
I made a typescript CDK application that creates AWS accounts under a specific Organisational Unit.
Now I need to to assign ...
1
vote
1
answer
445
views
How to correct Status Code:400; Error code: Malformed Policy
Unknown field version (Service: Amazon S3;
Status Code: 400; Error Code: MalformedPolicy;
Request ID: VKA1M3MNY37B2DGN; S3 Extended
Request ID: UItdX5yp9vy6KB19HQVjBdkW1fyGh2EvZ+47
...
-1
votes
1
answer
500
views
Properties Validation Failed for AWS CloudFront Distribution
Received this error indicated in theError in terminal
Image of yaml file
I tried researching the issue. Im honestly not sure where to start in diagnosing the issue in logical order.
1
vote
1
answer
589
views
aws cloudformation describe-stacks --query
I am trying to write a query for a specific stack. It looks like this:
$ aws cloudformation describe-stacks --region $AWS_REGION --profile $AWS_PROFILE --stack-name MyStack --query 'Stacks[?StackName =...