Creating a s3 backend and securing with dynamoDB locking mechanism using terraform. Steps:
- excute the s3 to create the bucket.
- excute dynamodb to create DynamoDB table.
- go back to main folder and run the main tf file to create ec2 instance and assign the s3 backend and locking with dynamobd table and get the public ip output.