Category: AWS
-
How to automatically delete rows from Dynamo DB through AWS Cloud formation template?
Let’s say you have built an app which uses AWS Dynamo DB as database. And you have a use case where you want to delete the rows in the table after a certain time , let’s say 1 hour. This can be done automatically! You just need to configure “Time To Live” settings while creating…
-
How to load AWS Secrets automatically on application startup in Spring Boot?
You can load AWS secrets from AWS Secrets Manager without writing any code in Spring Boot! And this happens automatically during application start up. This can be done by adding a single property in your application.yml file: spring.config.import Using bootstrap.yml file to do this has been deprecated and it is advisable to use this option…
-
How to create a secret in AWS Secrets Manager?
Creating a secret in AWS Secret Manager is pretty straightforward. Here are the steps to follow: STEP1: Go to AWS Secrets Manager Once you register on AWS , login to the console and navigate to AWS Secret Manager Then click on Store a new secret: STEP2: Choose the type of secret and enter the secret…
-
How to set up AWS access credentials in your local ?
If you want to access AWS resources from your local machine using AWS SDK , you can’t do it by default. You need to configure AWS access key id and AWS secret access key in your local. You can do this using AWS cli. Here is how to do it: STEP1: Install AWS cli You…