What is the difference between Elastic Beanstalk and CloudFormation for a .NET project?

I have developed a .NET MVC application and have started playing around with AWS and deploying it via the Visual Studio Toolkit. I have successfully deployed the application using the Elastic...

Updating rather than replacing ECS Task Definition with CloudFormation

When updating a TaskDefinition in CloudFormation the docs say that a replacement action occurs...

Getting Outputs from aws cloudformation describe-stacks

I am using the below to get the stack information I want via AWS Cli: aws cloudformation --region ap-southeast-2 describe-stacks --stack-name mystack It's returning result OK: { "Stacks": [ ...

How to name a custom managed policy created using cloudformation template

I can succefully create a custom IAM policy(managed) using below template: "IAMPolicy2": { "Type": "AWS::IAM::ManagedPolicy", "Properties": { "PolicyDocument": { ...

Need to configure serverless resource output to get api gateway api id

I have a serverless project that is creating an API Gateway API amongst other things. One of the functions in the project needs to generate a URL for an API endpoint. My plan is to get the API ID...

AWS Cloud Formation Stuck in Review_In_Progress

I was trying to set up AWS Code Pipeline with AWS SAM for Lambda using Java-8 as mentioned in the documentations http://docs.aws.amazon.com/lambda/latest/dg/automating-deployment.html (example is...

What is Sid attribute use for in key policies?

Here is a documentation: Sid – (Optional) The Sid is a statement identifier, an arbitrary string you can use to identify the statement. Does it means that Sid parameter is just description?

How to add a user to a Cognito User Pool Group from AWS Lambda?

I'm trying to add a user a to cognito user pool group from a lambda that gets triggered post confirmation. This is the code for that lambda: export async function postAuth(event, context,...

Referencing AWS Parameter Store's Secure String in CloudFormation template

Stuck with the usage of SecureString from AWS Parameter Store. I am trying to refer to the database password as: DatabasePassword: Type: AWS::SSM::Parameter::Value<SecureString> NoEcho:...

Unable to upload artifact None referenced by CodeUri parameter of HelloWorldFunction resource

I'm following this tutorial to learn how to use SAM. Here's the code I have: template.yml: AWSTemplateFormatVersion : '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: ...

What IAM permissions are needed to use CDK Deploy?

My team has a pipeline which runs under an execution IAM role. We want to deploy code to AWS through CloudFormation or the CDK. In the past, we would upload some artifacts to S3 buckets before...

How do you "DependsOn" a Lambda function from a CFN resource?

In Serverless, I am creating an AWS::Lambda::Permission CFN resource that allows Cognito to invoke a Custom Message Lambda Handler. AWS::Lambda::Permission depends on the lambda. How do I ensure...

Should the infrastructure code be stored in the same repository as the application code?

I am setting up an infrastructure to support a WebApp. One of my repositories have all the Network Infrastructure (VPC, Subnets, NAT, Bastion and so on). The WebApp has a Route 53 + ALB +...

How to create AWS Elasticbeanstalk application with integrated RDS using CloudFormation?

I am trying to setup the AWS environment for my SpringBoot application which uses Postgres. I decided to use CloudFormation to configure all the AWS components needed for my application. Following...

Output apikey value in cloud formation

I have a cloudformation template that outputs variables. One of the output variable is ApiGKeyId: Description: "Api Key Id" Value: !Ref ApplicationApiGatewayApiKey This returns the Id of...

Policy contains a statement with one or more invalid principals - AWS Cloudformation error

I have a CF template as shown below AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: gtm platform Lampda application deployment for...

How do I get the rate of the schedule that triggered a lambda?

I have multiple event schedules attached to a single lambda: Events: 1minute: Type: Schedule Properties: Schedule: rate(1 minute) 2minute: Type: Schedule ...

AWS CDK - how to grant invoke permissions on a Lambda to API Gateway before deployment?

This question relates to a problem I cam across here: https://stackoverflow.com/questions/62179893/aws-cdk-how-to-create-an-api-gateway-backed-by-lambda-from-openapi-spec. I create an API Gateway...

Start a Kinesis data analytics application with cloudformation

Is there a way to start a kinesis data analytics application via cloudformation? In these instructions, under the Start the Application section, there are instructions for how to start a Kinesis...

How to pass parameter as a file in AWS CloudFormation deploy?

I was trying to update the existing CloudFormation stack with the below command. aws cloudformation deploy there is no option to pass parameter file with deploy option. we tried to pass...

Deploying Docker image to AWS ECS using Jenkins

I created a sample project on GitHub and I would like to accomplish following on every PR: Build React application and get it running inside a Docker container Using pipeline build the Docker...

S3 error: Access Denied when deploying CFN template with Nested Stacks

I am trying to launch a CFN templated, Nested Stack. The child stack is in a bucket in the same region as the parent I am trying to launch via CFN console. I have Administrator Access and am able...

Container image support for AWS Lambda via cloudformation

AWS Lambda now supports container images as a packaging format. Ref Does cloudformation support using Container image for deploying AWS Lambda? Something similar to packaging and deployment...

CircleCI job is failing, help troubleshoot

PUBLIC_DNS=$(aws ec2 describe-instances --region ${AWS_DEFAULT_REGION} --filters 'Name=tag:Name,Values=udapeople-backend-ec2-*' --query "Reservations[*].Instances[0].PublicDnsName" --output...

How do I setup cross-account cross-region cloudwatch metrics with cloudformation?

How do I setup cross-account cross-region cloudwatch metrics using cloudformation? Is there a way to do this? I have gone through the documentation, but I don't see anything regarding cloudformation.

The difference between a Stack and Construct in AWS CDK

I'm new to CDK and confused about the difference between a Construct and a Stack. With CDK, we can define reusable cloud components known as Construct, and we can further compose these together...

Review needed to correct this ElastiCache CloudFormation Template

This template is used to create a ElastiCache- Redis cluster. Its showing me errors like - 1 validation error detected: Value '[AWS::ElastiCache::CacheCluster, AWS::EC2::SecurityGroup::Id]' at...

AWS CloudFormation blue/green deployments for EC2

Does AWS CloudFormation support blue/green deployments for EC2? I was able to create blue/green deployment using CodeDeploy for EC2; however, I couldn't figure out how to create one using...

SAM Template - define HttpApi with Lambda Authorizer and Simple Response

Description of the problem I have created a Lambda function with API Gateway in SAM, then deployed it and it was working as expected. In API Gateway I used HttpApi not REST API. Then, I wanted to...

AWS Lambda Application with Java resource

I have a project that I'm able to run locally, but it fails on AWS. To run the project locally I do sam build and then sam local start-api --host 0.0.0.0. Then I call...