From 7b2d212fcabead5d50b1e3d266645638bf88645d Mon Sep 17 00:00:00 2001 From: Hemanth Gokavarapu Date: Thu, 13 Jan 2022 12:45:59 +0530 Subject: [PATCH 1/2] Test for status check Signed-off-by: Hemanth Gokavarapu --- terraform-aws/infrastructure.tf | 6 ++++++ terraform-aws/s3.tf | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 terraform-aws/s3.tf diff --git a/terraform-aws/infrastructure.tf b/terraform-aws/infrastructure.tf index 84c5aa7..324255e 100644 --- a/terraform-aws/infrastructure.tf +++ b/terraform-aws/infrastructure.tf @@ -14,6 +14,12 @@ resource "aws_internet_gateway" "gateway" { } } +resource "aws_subnet" "db" { + vpc_id = aws_vpc.main.id + cidr_block = "10.125.3.0/24" + map_public_ip_on_launch = "true" +} + resource "aws_subnet" "public" { vpc_id = aws_vpc.main.id cidr_block = var.vpc_public_subnet diff --git a/terraform-aws/s3.tf b/terraform-aws/s3.tf new file mode 100644 index 0000000..b0971c8 --- /dev/null +++ b/terraform-aws/s3.tf @@ -0,0 +1,9 @@ +resource "aws_s3_bucket" "b" { + bucket = "infra-demo" + #acl = "private" + + tags = { + Name = "salary-data" + Environment = "prod" + } +} From b16e93e623fff372cc5db91a7f9b79aa5889d724 Mon Sep 17 00:00:00 2001 From: Hemanth Gokavarapu Date: Wed, 12 Oct 2022 15:52:05 +0530 Subject: [PATCH 2/2] Update readme file to test Signed-off-by: Hemanth Gokavarapu --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 72f6a7f..e9067a4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Terraform AWS + [![IaC](https://app.demo.soluble.cloud/api/v1/public/badges/e81f6569-4459-48c0-9c5d-70d6663aa47b.svg)](https://app.demo.soluble.cloud/repos/details/github.com/insecurecorp/terraform-aws) [![HIPAA](https://app.demo.soluble.cloud/api/v1/public/badges/c10af40b-c2f0-4569-abcc-b5479a5cfd54.svg)](https://app.demo.soluble.cloud/repos/details/github.com/insecurecorp/terraform-aws) ![demo](.images/sad-cloud.png)