×

Migrate CloudFormation Custom Resources after AWS adds support

New services do not always deliver support for CloudFormation at the launch. If you work with CloudFormation, you can create a Custom Resource. With the new import functionality, once AWS adds native support for the resource, you can now import this resource into your template and remove the old custom resource. This blog post describes the 4 stages: Create the Custom Resource provider; a lambda function Deploy the resource using the previous Custom Resource provider Import the custom created resource into your stack Remove the custom resource from the stack, leaving the imported for future use In our example we assume SNS Topic is not yet supported by CloudFormation at launch. Read more...

How to compose a deployment package in CloudFormation using the Package Composer Custom Provider

With this Custom Provider you can construct such a deployment package or the objects to be written to an S3 bucket, entirely within CloudFormation. When embedding the objects in the template, the deployment template is versioned and fully deterministic. Introduction Creating a Lambda function with dependencies, or publishing web content to an s3 website bucket typically involves creating a deployment package as a zip file or uploading a set of HTML files and assets to an S3 bucket. Read more...

How to get secrets from the AWS Parameter Store into containers in ECS

On AWS we often use the AWS Parameter Store, to store secrets safely. But accessing the secrets from an application running in ECS, is rather intrusive. You have to call the AWS SSM API either in the application or in the entrypoint script of the container. In this blog we show you how a simple utility allows you to specify the references to the secrets as environment variables. It even allows you to specify sensible defaults.

Read more...

How to keep AWS CloudWatch logs neat and tidy

AWS CloudWatch logs is an useful logging system, but in practice we run into two quircks: It does not allow you to set a default retention period for newly created log groups. Secondly it does not delete empty log streams that are older than the retention period. In this blog we introduce a utility that will fix these two issues. It can be installed as a CLI or deployed as an AWS Lambda.

Read more...

How to tag AWS Elastic IP addresses using CloudFormation

Sometimes a resource, such as AWS::EC2::EIP, does support tags but not in CloudFormation. The request for tagging support in CloudFormation has been outstanding at AWS for quite some time now. So in this blog, we will show you how to add tags to any resource using a CloudFormation custom provider.

Read more...
Page 1 of 12 Next Page