Skip to content

feat: import june bucket and centralize outputs - #12

Merged
tanayjdev merged 1 commit into
mainfrom
feature/refactor
Aug 22, 2026
Merged

tanayjdev merged 1 commit into
mainfrom
feature/refactor

Conversation

@tanayjdev

Copy link
Copy Markdown
Owner

Completing refactor exercise.

Copilot AI lite review requested due to automatic review settings August 22, 2026 14:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

Terraform Plan Result

Acquiring state lock. This may take a few moments...
module.rds.random_password.db_password: Refreshing state... [id=none]
data.aws_ami.ubuntu: Reading...
data.aws_availability_zones.available: Reading...
data.aws_region.current: Reading...
data.aws_caller_identity.current: Reading...
module.main_vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-03aff10d08bf89133]
module.asg.aws_iam_role.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-role]
data.aws_ami.latest_packer_build: Reading...
module.main_vpc.aws_vpc.this: Refreshing state... [id=vpc-016702f0ed6c85506]
module.rds.aws_secretsmanager_secret.rds_credentials: Refreshing state... [id=arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-dev-rds-credentials-f2tBVM]
module.rds.aws_sns_topic.rds_alerts: Refreshing state... [id=arn:aws:sns:ap-south-1:464975960111:terraform-mastery-dev-rds-alerts]
data.aws_region.current: Read complete after 0s [id=ap-south-1]
aws_s3_bucket.june_website: Refreshing state... [id=tanay-website-june-2026]
data.aws_caller_identity.current: Read complete after 0s [id=464975960111]
module.github_oidc.aws_iam_openid_connect_provider.github_actions: Refreshing state... [id=arn:aws:iam::464975960111:oidc-provider/token.actions.githubusercontent.com]
module.rds.aws_db_parameter_group.this: Refreshing state... [id=terraform-mastery-dev-pg-params]
module.github_oidc.aws_iam_role.terraform_apply: Refreshing state... [id=github-actions-terraform-apply]
module.github_oidc.aws_iam_role.terraform_plan: Refreshing state... [id=github-actions-terraform-plan]
module.asg.aws_iam_role_policy_attachment.secrets: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337628500000001]
module.asg.aws_iam_role_policy_attachment.ssm: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337648700000002]
data.aws_availability_zones.available: Read complete after 1s [id=ap-south-1]
module.asg.aws_iam_instance_profile.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-profile]
module.github_oidc.aws_iam_role_policy_attachment.apply_admin: Refreshing state... [id=github-actions-terraform-apply-20260821195946618800000002]
module.github_oidc.aws_iam_role_policy.plan_backend: Refreshing state... [id=github-actions-terraform-plan:github-actions-terraform-plan-backend]
module.github_oidc.aws_iam_role_policy_attachment.plan_readonly: Refreshing state... [id=github-actions-terraform-plan-20260821195946585400000001]
module.rds.aws_sns_topic_subscription.rds_alerts_email: Refreshing state... [id=arn:aws:sns:ap-south-1:464975960111:terraform-mastery-dev-rds-alerts:8661a1af-48d3-4b78-8fb2-feb3777d6c4f]
data.aws_ami.latest_packer_build: Read complete after 1s [id=ami-010bc4cb24e6f689e]
data.aws_ami.ubuntu: Read complete after 1s [id=ami-0aa761682283b4cc8]
module.main_vpc.aws_internet_gateway.this: Refreshing state... [id=igw-00d90a79438efefd4]
module.main_vpc.aws_subnet.private[1]: Refreshing state... [id=subnet-062363b66b590d170]
module.alb.aws_security_group.alb: Refreshing state... [id=sg-0c5ba7ff4febf2c41]
module.main_vpc.aws_subnet.private[0]: Refreshing state... [id=subnet-05b0fac0ac4e69049]
module.main_vpc.aws_subnet.public[1]: Refreshing state... [id=subnet-0dd762616728a8a65]
module.main_vpc.aws_subnet.public[0]: Refreshing state... [id=subnet-03f83da4c2ede3641]
module.alb.aws_lb_target_group.this: Refreshing state... [id=arn:aws:elasticloadbalancing:ap-south-1:464975960111:targetgroup/terraform-mastery-dev-tg/538b4d7aa42efe2f]
module.main_vpc.aws_route_table.public: Refreshing state... [id=rtb-00b6e59cce8ec7f45]
module.asg.aws_security_group.app: Refreshing state... [id=sg-07b2bfc0d3b4a03e0]
module.rds.aws_db_subnet_group.this: Refreshing state... [id=terraform-mastery-dev-db-subnet-group]
module.main_vpc.aws_nat_gateway.this[0]: Refreshing state... [id=nat-05439eeea5f6b969d]
module.alb.aws_lb.this: Refreshing state... [id=arn:aws:elasticloadbalancing:ap-south-1:464975960111:loadbalancer/app/terraform-mastery-dev-alb/d1c3c1263bdd703d]
module.main_vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-0058b1266eaa699cd]
module.main_vpc.aws_route_table_association.public[1]: Refreshing state... [id=rtbassoc-0eb2859d866024808]
module.main_vpc.aws_route_table.private[0]: Refreshing state... [id=rtb-0162c380846527788]
module.rds.aws_security_group.rds: Refreshing state... [id=sg-083faffcf03fd8036]
module.asg.aws_launch_template.this: Refreshing state... [id=lt-06f7e9af0b468bac4]
module.main_vpc.aws_route_table_association.private[1]: Refreshing state... [id=rtbassoc-0e9fe3288ca23fd00]
module.main_vpc.aws_route_table_association.private[0]: Refreshing state... [id=rtbassoc-0b78c8e90f14219b8]
module.rds.aws_db_instance.this: Refreshing state... [id=db-U5MUXE5UU73WRDK5DUCL5TYJWI]
module.rds.aws_secretsmanager_secret_version.rds_credentials: Refreshing state... [id=arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-dev-rds-credentials-f2tBVM|terraform-20260821184849183400000001]
module.rds.aws_cloudwatch_metric_alarm.low_storage: Refreshing state... [id=terraform-mastery-dev-rds-low-storage]
module.asg.aws_autoscaling_group.this: Refreshing state... [id=terraform-mastery-dev-asg]
aws_cloudwatch_dashboard.main: Refreshing state... [id=terraform-mastery-dev-overview]
module.alb.aws_lb_listener.http: Refreshing state... [id=arn:aws:elasticloadbalancing:ap-south-1:464975960111:listener/app/terraform-mastery-dev-alb/d1c3c1263bdd703d/27f28f01f27ede53]
module.asg.aws_autoscaling_policy.cpu_target_tracking: Refreshing state... [id=terraform-mastery-dev-cpu-tracking]
module.alb.aws_lb_listener_rule.block_admin: Refreshing state... [id=arn:aws:elasticloadbalancing:ap-south-1:464975960111:listener-rule/app/terraform-mastery-dev-alb/d1c3c1263bdd703d/27f28f01f27ede53/44c4a5d396181952]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.rds.aws_db_instance.this will be updated in-place
  ~ resource "aws_db_instance" "this" {
        id                                    = "db-U5MUXE5UU73WRDK5DUCL5TYJWI"
        tags                                  = {
            "Environment" = "dev"
            "ManagedBy"   = "Terraform"
            "Name"        = "terraform-mastery-dev-db"
            "Project"     = "terraform-mastery"
        }
        # (57 unchanged attributes hidden)
    }

  # module.rds.aws_secretsmanager_secret_version.rds_credentials will be updated in-place
  ~ resource "aws_secretsmanager_secret_version" "rds_credentials" {
        id             = "arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-dev-rds-credentials-f2tBVM|terraform-20260821184849183400000001"
        # (5 unchanged attributes hidden)
    }

  # module.rds.random_password.db_password will be updated in-place
  ~ resource "random_password" "db_password" {
        id               = "none"
        # (13 unchanged attributes hidden)
    }

Plan: 0 to add, 3 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
Releasing state lock. This may take a few moments...

@tanayjdev
tanayjdev merged commit 03c5d86 into main Aug 22, 2026
2 checks passed
@tanayjdev
tanayjdev deleted the feature/refactor branch August 22, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants