Error creating AWS CloudFormation Stack (AMI cannot be described)

I want to create a Amazon Web Services stack (CloudFormation) (clicking the New Stack Button to create a new AWS CLoudFormation Stack) based on this template: { "AWSTemplateFormatVersion" :...

AWS Export configuration as cloudformation template

I´m using AWS CLI and cloudformation, and I could not find any reference in the documentation. Anybody knows if it´s possible create a cloudformation template from a current...

Fetch AWS ReplicationGroup DNS using aws-cli

We use cloudformation to deploy our service instances in aws. Part of our stack is currently an elasticache redis cluster, but we're trying to transition to a redis ReplicationGroup for a little...

How can I grant permission to API Gateway to invoke lambda functions through CloudFormation?

I've been all over the web searching for an answer to this. Essentially, we're spinning up an API using Swagger, which is awesome and works great, but one thing doesn't work... When we make a call...

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": [ ...

ECS CLI key pair error when calling up

I am trying to use Amazon's ECS cli to create a cluster. I keep getting the error: reason="The key pair 'my-key-pair' does not exist" resourceType="AWS::AutoScaling::LaunchConfiguration" I have...

How to set Branch Filter option in AWS CodeBuild cloudformation template?

If using a Github repository as a source in a CodeBuild project, the Branch Filter option allows to run builds only for branches, whose name is matching a certain regular expression. AWS...

Creating an Aurora Serverless Cluster from cloudformation?

From Aurora Serverless's document, there are 3 ways to create an Aurora serverless DB cluster: AWS management console, CLI, and RDS API....

AWS SAM Template - Define SQS queue triggered by API Gateway

I'm facing a problem when trying to deploy my stack via AWS SAM CLI. I'm using the SAM simplified template which I package and deploy. All I want is to create an SQS queue and implicitly create an...

Can we overwrite SSM parameter from CloudFormation template?

Let's say I have stack-1 as AWSTemplateFormatVersion: 2010-09-09 Resources: BasicParameter: Type: "AWS::SSM::Parameter" Properties: Name: "commands" Type: "StringList" ...

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: ...

Provide hostname to Schema Registry instances running within ECS

I am building a redundant Schema Registry hosted in Amazon for our MSK Kafka Cluster by using an ECS cluster. The SchemaRegistry TaskDefinition needs to define a hostname which is unique to each...

sam package vs aws cloudformation package

The docs say they do exactly the same thing: Both the sam package and sam deploy commands described in this section are identical to their AWS CLI equivalent commands aws cloudformation package...

Serverless offline - Migration on local dynamoDb is not working

I'm working in a Serverless project and I'm having issues to run locally my application with dynamodb. It is not creating a data table thus not executing correctly the seed. What is wrong with my...

AWS Backupvault SNS notification

I have created a backup plan and configured SNS using cloud formation ( not CLI ), but backup job has running and completed successfully but not receiving emails notification ( already subscribe...

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...

AWS CodePipeline GitHub webhook can not be registered with GitHub if repo is an organisation repository

When I set up the hook using the console it works, but when I try to do it using cloudformation it never works. It does not even work if I use the AWS CLI version: aws codepipeline...

How to set a stage name in a SAM template

I want to set a stage name for the API Gateway in a SAM template.yaml. But whatever I try I'm not succeeding. Without trying to name my stage, everything works as expected but with the default...

Sending message to AWS Lambda from AWS Pinpoint Custom Channel

I am trying to send messages to my AWS Lambda Function from AWS Pinpoint through custom channel as described here My problem is about granting permission to AWS Pinpoint to invoke my lambda...

Failed to start API Mock endpoint Error: CloudFormation stack parameter rdsRegion is missing default value

I have added my RDS MySQL datastore to appsync as follows: [email protected]:/var/www/unsal.co.uk$ amplify api add-graphql-datasource Using datasource: Aurora Serverless, provided by:...

AWS CloudFormation - Attach existing managed policy to existing role through a template

I am deploying a CloudFormation template to AWS. A role for my Lambda invocation is being created by a template that I am importing, and I cannot modify it directly. I wish to modify that role to...

Misleading error message when creating an RDS DB Subnet Group in AWS

I am using restricted roles for deploying resources via Cloudformation and have come across an error that threw me for a loop for some time. I have a minimal role that I am using to create the...

Uploaded file must be a non-empty zip (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException;

I have a simple Express/Node.js application with the following files with no subdirectories (other than .serverless and...

CDK and automation of inserting secure string parameters into ssm parameter store?

So I found out that you can't use CloudFormation to insert a parameter that needs to be secured with a KMS Key into Secure Parameter Store. Obviously, you can use the cli, but that has huge...

ConflictException: Base path already exists for this domain name in Serverless AWS

I am trying to deploy my service to the AWS using the Serverless framework with Nodejs template. It is deployed to the server but it's not mapping the domain name to my service. Before that I...

Unable to write to AWS Timestream Table ResourceNotFound Exception

I am trying to write to a Timestream database I have created. But, before that it should be stated that I have my AWS account set up with a DEV account and a Prod account which I role switch...

CDK deploy not recognizing my bootstrap and SSM parameter

I have a project with CDK and CDK Deploy does not work. My project is a simple CDK app that has been started with cdk init app --language typescript and was working at first. I don't have anything...

Localstack block cors when use Commandeer dashboard

Commander 403 error: I'm using the commandeer to run a local instance of aws, but some services I need, such as Dynamo, Cloudformation, SNS and SQS are off with error 403 in the commandeer....

AWS Cloudformation: How to fix "Api Event must reference an Api in the same template" error?

I am trying to split my stack into nested stack because i hit the AWS Max stack resource limit. I am building a REST API. I want to use a one API Gateway for all the stacks. Below is my...

AWS CLI Cloudformation - Read timeout on endpoint URL: "https://cloudformation.us-east-1.amazonaws.com/"

When running below command from a dev linux box i am getting error "Read timeout on endpoint URL: "https://cloudformation.us-east-1.amazonaws.com/" aws cloudformation create-stack --stack-name...