Questions tagged [aws-cloudformation]
For questions about CloudFormation, part of the Amazon Web Services (AWS) that provides a way to manage a collection of related AWS resources.
8,242
questions
0
votes
1
answer
11
views
AWS CDK - API Gateway LambdaIntegration - passing a literal using requestParameters?
I'm trying to pass a literal value to the called lambda function using API gateway integration requestParameters but with no luck.
My current code is:
myApigatewayResource.addMethod(
'GET',
...
0
votes
0
answers
9
views
How to bypass API key validity check in AWS CloudFormation Console rollback
I tried to perform an update using AWS Amplify, and the update failed due to a mistake I made in the configuration.
That's not a problem, but the issue is that the rollback from my failed update also ...
0
votes
0
answers
9
views
Does Updating Description in AWS::Lambda::Version Trigger New Version Creation in CloudFormation?
My use case:
I am using CloudFormation to deploy a Lambda function.
I aim to automate the publishing of a new Lambda version with every code change.
I prefer not to use AutoPublishAlias since it is ...
0
votes
1
answer
12
views
INSUFFICIENT_DATA for Cloudwatch Alarm
This is my serverless Cloudformation:
MyAlarm1:
Type: AWS::CloudWatch::Alarm
Properties:
AlarmName: "MyAlarm1"
Namespace: AWS/SQS
Statistic: Sum
...
0
votes
0
answers
6
views
AWS Amplify Identity Broker - Lambda PostDeployment never triggered
I'm currently deploying the AWS Amplify Identity Broker project but I have an issue with its initialization.
The PostDeployment Lambda is never triggered. Even after following Step 9 of the ...
-1
votes
0
answers
18
views
S3 bucket policy for aws sam deploy to work
I'm trying to use an S3 bucket which is being passed in sam deploy but I'm getting the error as "An error occurred (AccessDenied) when calling the PutObject operation: Access Denied".
...
0
votes
1
answer
19
views
AWS S3 policy restrict only my cloudFrontdistribution (by yaml cloudFormation)
I want create AWS S3 policy. I want AWS S3 not public AND just access by my cloudFront distribution. I read all documentation but I do not find yaml sample.
I try this but I have an error (Policy has ...
0
votes
1
answer
39
views
RequestParameters specification
I am trying to create a Restful API Gateway (AWS::ApiGateway::RestApi) integrated with a lambda function. I'd also like to call it asynchronously (that is when it called like /foobar it triggers the ...
0
votes
1
answer
20
views
How can I list exported values from all of my CloudFormation templates?
I'm exporting the name of the stack and the URL of my Lambda function in my CloudFormation template.
Outputs:
LambdaInvokeURL:
Value: !GetAtt Myurl.FunctionUrl
Export:
Name: !Sub &...
1
vote
1
answer
37
views
Take CFN stack creation time for AWS EB scheduler, not project build time
I have a problem working with AWS CDK JS Event Bridge Scheduler, I have a service catalog "ProductStack" and I defined the one-time scheduler in it, so ONLY when the user will provision that ...
0
votes
0
answers
37
views
Properties validation failed for resource IotTopicRule2
My CloudFormation template looks like this:-
IotTopicRule2:
Type: 'AWS::IoT::TopicRule'
Properties:
RuleName: 'CloudWatchLogsRule'
TopicRulePayload:
Sql: "SELECT * ...
0
votes
1
answer
21
views
Cloud formation template for delta lake tables using Aws glue crawler 'Invalid delta target with empty delta tables' error
``
AWSTemplateFormatVersion: "2010-09-0
AWSTemplateFormatVersion: "2010-09-09"
Description: Delta lake tables using aws glue crawler
Resources:
Crawl:
Type: AWS::Glue::Crawler
...
-1
votes
0
answers
24
views
AWS Code Deploy - Deployment waiting for notification
Problem Description: Encountering a deployment timeout issue when using AWS CodeDeploy in conjunction with ECS Blue/Green. The error message indicates a timeout while waiting for a notification to ...
0
votes
1
answer
23
views
If already aws s3 bucket exist how can I modify it
I created yaml file which is creating s3 bucket in us-east-1 and attaching replication rule on it with existing bucket in us-west-2. My problem is I wanna use my same template yaml file with if I have ...
-1
votes
0
answers
31
views
AWS CodePipeline Code Deploy - Deploy Stage - Invalid action configuration
Hi Stackoverflow community!
Very happy to post my first question and thanks already at all for all the times you saved me and helped me to understand things better :)
I'll try to explain my issue as ...
0
votes
0
answers
17
views
How to avoid the cyclic dependency in the cross-account s3 replication configuration
I'm trying to configure cross-account s3 data replication, but CloudFormation service makes it difficult with its validations.
stack 1 contains the following construct:
export default class ...
1
vote
1
answer
31
views
AWS Lambda using Annotations framework for .NET - missing Role
I'm porting to AWS Lambda functions an entire .NET 6 web application, using AWS Lambda Annotations framework.
With each build, the Amazon.Lambda.Annotations package takes every annotated API method ...
2
votes
1
answer
26
views
Correct way to use intrinsict IF CloudFormation function
Is it possible to use the intrinsic IF CloudFormation function to remove some properties depending of some condition?
Example: Create a provisioned concurrency for a Lambda Function only if the ...
0
votes
1
answer
38
views
AWS MSK Configuration creation fails in CloudFormation
I am trying to configure an AWS MSK Cluster in CloudFormation with this yml template:
MSKClusterConfiguration:
Type: AWS::MSK::Configuration
Properties:
Name: MJPMSKConfiguration
KafkaVersionsList:...
1
vote
1
answer
33
views
Unable to add resource to CloudFormation template
I have a CloudFormation template. The problem area is the very last Resource statement, but I can not figure out why.
AWSTemplateFormatVersion: "2010-09-09"
Description: CloudFormation ...
0
votes
0
answers
17
views
extraneous key [KubernetesApiAccess] is not permitted - when running EKS Cloudformation
When trying to create an EKS cluster using a 'well formed' cloud formation yaml template - i get the following CREATE_FAILED error in stacks event:
Properties validation failed for resource ...
-1
votes
0
answers
26
views
EC2 not created in CloudFormation
I'm keep getting this error:
The requested configuration is currently not supported. Please check the documentation for supported configurations. (Service: AmazonEC2; Status Code: 400; Error Code: ...
1
vote
1
answer
24
views
AWS CloudFormation Overlapping CIDR
I have just started working with AWS Cloudformation. I was trying to create a stack that routes traffic from my internet gateway to my NLB and subsequently to an instance in a target group. ...
0
votes
0
answers
16
views
Serverless deployment serverless-plugin-split-stacks plugin doesn't decrease root resources in any configuration
When changing the configuration for the serverless-plugin-split-stacks plugin, the number of resources in the root stack stays the same. Since CloudFormation has a limit of maximum 500 resources, I ...
0
votes
0
answers
38
views
Changing nestedStackCount in serverless-plugin-split-stacks
Since CloudFormation has a limit of 500 resources, we are splitting our stack with the serverless-plugin-split-stacks plugin. Recently, we have run out of the resources this way as well. The ...
-1
votes
0
answers
21
views
EC2 cloudformation fails due not found security group in VPC
So here is the VPC.yaml. It successfully creates and all exports are working well:
Parameters:
VPCName:
Default: "VPC"
Type: String
Description: Name for the VPC
Resources:
...
0
votes
1
answer
20
views
cloudformation stack fails due to resources not creating
i'm trying to set up a cloudformation template and somehow it keeps failing like resources declared in the VPC stack are not created
VPC.yaml
Parameters:
VPCName:
Default: "VPC"
...
0
votes
0
answers
8
views
Not able to enable the cors of APIgateway via CFT. But we are able to do it manually using the console
Not able to enable the cors of APIgateway via CFT. But we are able to do it manually using the console.
I also use the code in the correct answer in the below to questions:
Enable CORS for API ...
0
votes
0
answers
10
views
Creating crawler through cloud formation for multiple s3 targets
In side targeti have define like below
Targets:
S3Targets:
- Path: !Ref S3TargetPaths
With this approach getting below error
Property validation failure: [ Value of property { /Targets/S3Targets/0/...
0
votes
2
answers
48
views
AWS Task Definition container port
I am using a simple Dockerfile that will create an image and run a simple node.js application in port 3000.
This is my dockerfile.
FROM node:16-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN ...
0
votes
1
answer
44
views
AWS Cloudformation with Custom Resource stuck in CREATE_IN_PROGRESS
Good evening, I am writing because I have a problem with CloudFormation. I am trying to deploy with Cloud Formation a Lambda function that is invoke automatically from the Stack.
Here it the lambda ...
0
votes
0
answers
36
views
I want to upgrade my ASG instances. Why does the upgrade fail?
I have an AutoScaling Group of 8 m7i-flex.large instances on which I run Kubernetes Deployments with EKS.
I want to upgrade the instances to the xlarge version, but the upgrade fails every time. It ...
0
votes
1
answer
32
views
AWS CDK: Reuse NAT-Gateway and App Load Balancer (ALB) to reduce cost
I am new in AWS with CDK and trying to reduce cost in NAT-Gateway and ALB.
I have a stack for every client within NAT-Gateway, ALB, EC2, EFS and so on. If I have 3 clients I will end with 3 NAT-...
0
votes
0
answers
18
views
Sample CloudFormation template for deploying from dev to test?
I read there are sample CloudFormation templates for deploying from Dev to Test env. The AWS resources are S3 bucket and Cloud-front Distribution. Does anyone know of a good sample template I could ...
-1
votes
1
answer
60
views
AWS CloudFormation: Load Balancer Internet Gateway? Bucket creation resulting AccessControl only 1 out of 2 subschema matches?
Problem Load Balancer Internet Gateway to Subnets
**Problem 1 ? **
Resources Load Balancer resulting from a missing internet gateway to pass through VPC AWS resource, not created on YAML stack.
...
0
votes
1
answer
22
views
CloudFormation: least two subnets in two different Availability Zones must be specified
Problem
Resources not created on YAML stack. The stack failed to Create resources for the following that least two subnets in two different Availability Zones must be specified:
[ECNet2, LoadBalance1, ...
-1
votes
1
answer
29
views
AWS Cloudformation: YAML: Key: Name expected <block end>, but found '?' in Value: 'PublicSubnet2'
PROBLEM
YAML formating error, not able to determine what is missing to correct in this YAML format online tool: https://www.anyjson.in/yaml-formatter to check my YAML script.
YAML Effort to fix format
...
0
votes
1
answer
38
views
Deploy a React-based single-page application to Amazon S3 and CloudFront - Access Denied
I tried using Amazon's instructions step by step in this article:
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-react-based-single-page-application-to-amazon-s3-and-...
0
votes
1
answer
36
views
Update ECS service with AWS CLI avoiding CFN drift
Currently I deployed the first version of an ECS service via CFN using resolve:ssm to add a dynamic reference to the container image tag and to the task definition ARN. Then I update the service using ...
0
votes
0
answers
29
views
Shorten function to select AWS Availability Group
Is there any way we can shorten this function to select the availability group?
This is the long function to get and select the availability group:
############
AvailabilityZone: !Select
- 0
- !...
0
votes
1
answer
50
views
An error occurred (InvalidParameterValue) when calling the CreateEnvironment operation: Tag key 'Name' is reserved
Im receiving following error when trying to deploy spring boot application using Jenkins to AWS Elastic beanstalk. This used to get deployed without an issue, but this error has started to occur ...
1
vote
0
answers
50
views
Changing the encryption settings of EC2 EBS devices while creating a launch template using AWS CDK with Python
In my AWS environment, I have an unencrypted AMI. When I launch EC2 instances from it, their EBS volumes are unencrypted, as expected. I'm trying to change the encryption settings of the EBS volumes ...
-2
votes
0
answers
31
views
AWS Cloudformation: AWS Scalable EC2
Cloud Formation AWS Scalable EC2 Design Implementation Problem
Using AWS CloudFormation YAML to create resource stack with EC2, RDS database, ELB Load Balancer.
This code is a design solution that ...
0
votes
0
answers
39
views
Updating created users in CloudFormation template resets their passwords
I am creating a CloudFormation template that will have users.
The user I created has a password and should be changed first time he logs in.
My issue is that whenever I update the CF template, let's ...
0
votes
1
answer
42
views
AWS Cloudformation logs
I am using AWS CDK to subscribe Lambda function for Create events from S3. I receive this kind of error.
Error: An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration ...
0
votes
1
answer
30
views
AWS Cloudformation: error: instance Fn::GetAtt undefined AWS Scalable EC2
Cloud Formation AWS Scalable EC2 Problem
Using AWS CloudFormation YAML to create resource stack with EC2, RDS database, ELB Load Balancer. This code is a design solution that will provide for a base ...
0
votes
1
answer
43
views
How to Update Resources for already deployed AWS Resources in Serverless Framework?
Like the title, I want to update or edit some configurations my DynamoDB table which is already deployed to AWS. I am currently managing all resources in one serverelss.yml file. When I change some ...
0
votes
2
answers
50
views
AWS Cloudformation Error: SecurityGroup 'typeNameList' Member must satisfy constraint
Cloud Formation AWS Security Problem
Using AWS CloudFormation YAML to create resource stack with EC2, etc and RDS database. Have specific issue with reference Member constraint on SecurityGroup.
...
0
votes
1
answer
16
views
AWS CloudFoundation Template error: Invalid template resource property 'VpcId' YAML format
Problem
Using AWS CloudFormation YAML to create resource stack with EC2, etc and RDS database. Have specific issue with reference use of VPC on parameters for resources.
Template format error
Resource ...
1
vote
1
answer
15
views
AWS CloudFoundation Template error: Unresolved resource [DBInstance] YAML format
Problem
Using AWS CloudFormation YAML to create resource stack with EC2, etc and RDS database, etc.
Template format error
Format resource DBInstance is location of problem in YAML script
Template ...