Skip to content

feat(env): parameterized dev and prod environment replication - #11

Merged
tanayjdev merged 7 commits into
mainfrom
feat/environment-replication
Aug 21, 2026
Merged

tanayjdev merged 7 commits into
mainfrom
feat/environment-replication

Conversation

@tanayjdev

Copy link
Copy Markdown
Owner

Add environment parameterization, per-environment tfvars, and deploy.sh to prove identical Terraform architecture with environment-specific sizing.

…s, single deploy.sh entrypoint, resource-address diff proves structural identity
…s, single deploy.sh entrypoint, resource-address diff proves structural identity
Copilot AI lite review requested due to automatic review settings August 21, 2026 19:41

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...

1 similar comment
@github-actions

Copy link
Copy Markdown

Terraform Plan Result

Acquiring state lock. This may take a few moments...

@github-actions

Copy link
Copy Markdown

Terraform Plan Result


1 similar comment
@github-actions

Copy link
Copy Markdown

Terraform Plan Result


@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_availability_zones.available: Reading...
module.github_oidc.aws_iam_openid_connect_provider.github_actions: Refreshing state... [id=arn:aws:iam::464975960111:oidc-provider/token.actions.githubusercontent.com]
data.aws_ami.latest_packer_build: Reading...
data.aws_region.current: Reading...
data.aws_ami.ubuntu: Reading...
module.asg.aws_iam_role.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-role]
module.main_vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-03aff10d08bf89133]
module.rds.aws_sns_topic.rds_alerts: Refreshing state... [id=arn:aws:sns:ap-south-1:464975960111:terraform-mastery-dev-rds-alerts]
module.rds.aws_db_parameter_group.this: Refreshing state... [id=terraform-mastery-dev-pg-params]
data.aws_region.current: Read complete after 0s [id=ap-south-1]
module.rds.aws_secretsmanager_secret.rds_credentials: Refreshing state... [id=arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-dev-rds-credentials-f2tBVM]
data.aws_caller_identity.current: Reading...
data.aws_caller_identity.current: Read complete after 0s [id=464975960111]
module.main_vpc.aws_vpc.this: Refreshing state... [id=vpc-016702f0ed6c85506]
module.github_oidc.aws_iam_role.terraform_plan: Refreshing state... [id=github-actions-terraform-plan]
module.github_oidc.aws_iam_role.terraform_apply: Refreshing state... [id=github-actions-terraform-apply]
module.asg.aws_iam_instance_profile.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-profile]
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]
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]
data.aws_availability_zones.available: Read complete after 1s [id=ap-south-1]
module.github_oidc.aws_iam_role_policy_attachment.apply_admin: Refreshing state... [id=github-actions-terraform-apply-20260821195946618800000002]
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 2s [id=ami-0aa761682283b4cc8]
module.main_vpc.aws_subnet.private[1]: Refreshing state... [id=subnet-062363b66b590d170]
module.main_vpc.aws_subnet.public[0]: Refreshing state... [id=subnet-03f83da4c2ede3641]
module.main_vpc.aws_internet_gateway.this: Refreshing state... [id=igw-00d90a79438efefd4]
module.main_vpc.aws_subnet.public[1]: Refreshing state... [id=subnet-0dd762616728a8a65]
module.alb.aws_security_group.alb: Refreshing state... [id=sg-0c5ba7ff4febf2c41]
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_subnet.private[0]: Refreshing state... [id=subnet-05b0fac0ac4e69049]
module.main_vpc.aws_nat_gateway.this[0]: Refreshing state... [id=nat-05439eeea5f6b969d]
module.main_vpc.aws_route_table.public: Refreshing state... [id=rtb-00b6e59cce8ec7f45]
module.asg.aws_security_group.app: Refreshing state... [id=sg-07b2bfc0d3b4a03e0]
module.alb.aws_lb.this: Refreshing state... [id=arn:aws:elasticloadbalancing:ap-south-1:464975960111:loadbalancer/app/terraform-mastery-dev-alb/d1c3c1263bdd703d]
module.rds.aws_db_subnet_group.this: Refreshing state... [id=terraform-mastery-dev-db-subnet-group]
module.main_vpc.aws_route_table.private[0]: Refreshing state... [id=rtb-0162c380846527788]
module.main_vpc.aws_route_table_association.public[1]: Refreshing state... [id=rtbassoc-0eb2859d866024808]
module.main_vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-0058b1266eaa699cd]
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[0]: Refreshing state... [id=rtbassoc-0b78c8e90f14219b8]
module.main_vpc.aws_route_table_association.private[1]: Refreshing state... [id=rtbassoc-0e9fe3288ca23fd00]
module.rds.aws_db_instance.this: Refreshing state... [id=db-U5MUXE5UU73WRDK5DUCL5TYJWI]
module.rds.aws_cloudwatch_metric_alarm.low_storage: Refreshing state... [id=terraform-mastery-dev-rds-low-storage]
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.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 planned the following actions, but then encountered a problem:

  # 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.random_password.db_password will be updated in-place
  ~ resource "random_password" "db_password" {
        id               = "none"
        # (13 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.
Releasing state lock. This may take a few moments...

@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_caller_identity.current: Reading...
data.aws_availability_zones.available: Reading...
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.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]
module.asg.aws_iam_role.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-role]
data.aws_ami.ubuntu: Reading...
module.main_vpc.aws_vpc.this: Refreshing state... [id=vpc-016702f0ed6c85506]
data.aws_region.current: Reading...
data.aws_region.current: Read complete after 0s [id=ap-south-1]
data.aws_ami.latest_packer_build: Reading...
module.main_vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-03aff10d08bf89133]
data.aws_caller_identity.current: Read complete after 0s [id=464975960111]
module.github_oidc.aws_iam_role.terraform_plan: Refreshing state... [id=github-actions-terraform-plan]
module.github_oidc.aws_iam_role.terraform_apply: Refreshing state... [id=github-actions-terraform-apply]
module.asg.aws_iam_role_policy_attachment.ssm: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337648700000002]
module.asg.aws_iam_role_policy_attachment.secrets: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337628500000001]
module.asg.aws_iam_instance_profile.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-profile]
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.github_oidc.aws_iam_role_policy_attachment.apply_admin: Refreshing state... [id=github-actions-terraform-apply-20260821195946618800000002]
data.aws_availability_zones.available: Read complete after 1s [id=ap-south-1]
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[0]: Refreshing state... [id=subnet-05b0fac0ac4e69049]
module.alb.aws_security_group.alb: Refreshing state... [id=sg-0c5ba7ff4febf2c41]
module.main_vpc.aws_subnet.private[1]: Refreshing state... [id=subnet-062363b66b590d170]
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.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.asg.aws_security_group.app: Refreshing state... [id=sg-07b2bfc0d3b4a03e0]
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.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.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_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 planned the following actions, but then encountered a problem:

  # 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.random_password.db_password will be updated in-place
  ~ resource "random_password" "db_password" {
        id               = "none"
        # (13 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.
Releasing state lock. This may take a few moments...

@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_region.current: Reading...
data.aws_ami.ubuntu: Reading...
data.aws_caller_identity.current: Reading...
data.aws_ami.latest_packer_build: Reading...
module.rds.aws_sns_topic.rds_alerts: Refreshing state... [id=arn:aws:sns:ap-south-1:464975960111:terraform-mastery-dev-rds-alerts]
module.rds.aws_secretsmanager_secret.rds_credentials: Refreshing state... [id=arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-dev-rds-credentials-f2tBVM]
data.aws_availability_zones.available: Reading...
module.asg.aws_iam_role.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-role]
module.main_vpc.aws_vpc.this: Refreshing state... [id=vpc-016702f0ed6c85506]
module.rds.aws_db_parameter_group.this: Refreshing state... [id=terraform-mastery-dev-pg-params]
data.aws_region.current: Read complete after 0s [id=ap-south-1]
module.github_oidc.aws_iam_openid_connect_provider.github_actions: Refreshing state... [id=arn:aws:iam::464975960111:oidc-provider/token.actions.githubusercontent.com]
data.aws_caller_identity.current: Read complete after 0s [id=464975960111]
module.main_vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-03aff10d08bf89133]
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.ssm: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337648700000002]
module.asg.aws_iam_instance_profile.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-profile]
module.asg.aws_iam_role_policy_attachment.secrets: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337628500000001]
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_attachment.plan_readonly: Refreshing state... [id=github-actions-terraform-plan-20260821195946585400000001]
module.github_oidc.aws_iam_role_policy.plan_backend: Refreshing state... [id=github-actions-terraform-plan:github-actions-terraform-plan-backend]
data.aws_availability_zones.available: Read complete after 1s [id=ap-south-1]
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[0]: Refreshing state... [id=subnet-05b0fac0ac4e69049]
module.main_vpc.aws_subnet.private[1]: Refreshing state... [id=subnet-062363b66b590d170]
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.alb.aws_security_group.alb: Refreshing state... [id=sg-0c5ba7ff4febf2c41]
module.main_vpc.aws_route_table.public: Refreshing state... [id=rtb-00b6e59cce8ec7f45]
module.rds.aws_db_subnet_group.this: Refreshing state... [id=terraform-mastery-dev-db-subnet-group]
module.asg.aws_security_group.app: Refreshing state... [id=sg-07b2bfc0d3b4a03e0]
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[1]: Refreshing state... [id=rtbassoc-0eb2859d866024808]
module.main_vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-0058b1266eaa699cd]
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.private[0]: Refreshing state... [id=rtb-0162c380846527788]
module.rds.aws_db_instance.this: Refreshing state... [id=db-U5MUXE5UU73WRDK5DUCL5TYJWI]
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_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.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]
module.asg.aws_autoscaling_policy.cpu_target_tracking: Refreshing state... [id=terraform-mastery-dev-cpu-tracking]

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

Terraform planned the following actions, but then encountered a problem:

  # module.github_oidc.aws_iam_role_policy.plan_backend will be updated in-place
  ~ resource "aws_iam_role_policy" "plan_backend" {
        id     = "github-actions-terraform-plan:github-actions-terraform-plan-backend"
        name   = "github-actions-terraform-plan-backend"
      ~ policy = jsonencode(
          ~ {
              ~ Statement = [
                    # (2 unchanged elements hidden)
                    {
                        Action    = [
                            "s3:ListBucket",
                        ]
                        Condition = {
                            StringLike = {
                                "s3:prefix" = [
                                    "terraform-mastery/*",
                                ]
                            }
                        }
                        Effect    = "Allow"
                        Resource  = "arn:aws:s3:::tanayjdev-tf-state-2026-464975960111"
                    },
                  ~ {
                      ~ Resource = "arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-rds-credentials-*" -> "arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-*-rds-credentials-*"
                        # (2 unchanged attributes hidden)
                    },
                ]
                # (1 unchanged attribute hidden)
            }
        )
        # (1 unchanged attribute hidden)
    }

  # 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.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.
Releasing state lock. This may take a few moments...

@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_availability_zones.available: Reading...
data.aws_region.current: Reading...
module.github_oidc.aws_iam_openid_connect_provider.github_actions: Refreshing state... [id=arn:aws:iam::464975960111:oidc-provider/token.actions.githubusercontent.com]
data.aws_ami.latest_packer_build: Reading...
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.main_vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-03aff10d08bf89133]
module.main_vpc.aws_vpc.this: Refreshing state... [id=vpc-016702f0ed6c85506]
data.aws_ami.ubuntu: Reading...
data.aws_caller_identity.current: Reading...
module.rds.aws_db_parameter_group.this: Refreshing state... [id=terraform-mastery-dev-pg-params]
data.aws_region.current: Read complete after 0s [id=ap-south-1]
module.asg.aws_iam_role.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-role]
module.rds.aws_sns_topic.rds_alerts: Refreshing state... [id=arn:aws:sns:ap-south-1:464975960111:terraform-mastery-dev-rds-alerts]
module.github_oidc.aws_iam_role.terraform_plan: Refreshing state... [id=github-actions-terraform-plan]
data.aws_caller_identity.current: Read complete after 0s [id=464975960111]
module.github_oidc.aws_iam_role.terraform_apply: Refreshing state... [id=github-actions-terraform-apply]
module.asg.aws_iam_role_policy_attachment.ssm: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337648700000002]
module.asg.aws_iam_instance_profile.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-profile]
module.asg.aws_iam_role_policy_attachment.secrets: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337628500000001]
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.github_oidc.aws_iam_role_policy_attachment.apply_admin: Refreshing state... [id=github-actions-terraform-apply-20260821195946618800000002]
data.aws_availability_zones.available: Read complete after 1s [id=ap-south-1]
data.aws_ami.latest_packer_build: Read complete after 1s [id=ami-010bc4cb24e6f689e]
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.ubuntu: Read complete after 1s [id=ami-0aa761682283b4cc8]
module.main_vpc.aws_subnet.public[0]: Refreshing state... [id=subnet-03f83da4c2ede3641]
module.main_vpc.aws_subnet.public[1]: Refreshing state... [id=subnet-0dd762616728a8a65]
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.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_nat_gateway.this[0]: Refreshing state... [id=nat-05439eeea5f6b969d]
module.main_vpc.aws_route_table.public: Refreshing state... [id=rtb-00b6e59cce8ec7f45]
module.asg.aws_security_group.app: Refreshing state... [id=sg-07b2bfc0d3b4a03e0]
module.alb.aws_lb.this: Refreshing state... [id=arn:aws:elasticloadbalancing:ap-south-1:464975960111:loadbalancer/app/terraform-mastery-dev-alb/d1c3c1263bdd703d]
module.rds.aws_db_subnet_group.this: Refreshing state... [id=terraform-mastery-dev-db-subnet-group]
module.main_vpc.aws_route_table.private[0]: Refreshing state... [id=rtb-0162c380846527788]
module.main_vpc.aws_route_table_association.public[1]: Refreshing state... [id=rtbassoc-0eb2859d866024808]
module.main_vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-0058b1266eaa699cd]
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 planned the following actions, but then encountered a problem:

  # 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.random_password.db_password will be updated in-place
  ~ resource "random_password" "db_password" {
        id               = "none"
        # (13 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.
Releasing state lock. This may take a few moments...

@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_availability_zones.available: Reading...
data.aws_ami.latest_packer_build: Reading...
data.aws_caller_identity.current: Reading...
module.asg.aws_iam_role.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-role]
module.rds.aws_db_parameter_group.this: Refreshing state... [id=terraform-mastery-dev-pg-params]
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]
data.aws_region.current: Reading...
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_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]
data.aws_ami.ubuntu: Reading...
data.aws_caller_identity.current: Read complete after 0s [id=464975960111]
module.main_vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-03aff10d08bf89133]
module.github_oidc.aws_iam_role.terraform_plan: Refreshing state... [id=github-actions-terraform-plan]
module.github_oidc.aws_iam_role.terraform_apply: Refreshing state... [id=github-actions-terraform-apply]
module.asg.aws_iam_instance_profile.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-profile]
module.asg.aws_iam_role_policy_attachment.ssm: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337648700000002]
module.asg.aws_iam_role_policy_attachment.secrets: Refreshing state... [id=terraform-mastery-dev-app-instance-role-20260821174337628500000001]
module.github_oidc.aws_iam_role_policy_attachment.plan_readonly: Refreshing state... [id=github-actions-terraform-plan-20260821195946585400000001]
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.apply_admin: Refreshing state... [id=github-actions-terraform-apply-20260821195946618800000002]
data.aws_availability_zones.available: Read complete after 1s [id=ap-south-1]
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.public[1]: Refreshing state... [id=subnet-0dd762616728a8a65]
module.main_vpc.aws_subnet.private[1]: Refreshing state... [id=subnet-062363b66b590d170]
module.main_vpc.aws_subnet.private[0]: Refreshing state... [id=subnet-05b0fac0ac4e69049]
module.main_vpc.aws_subnet.public[0]: Refreshing state... [id=subnet-03f83da4c2ede3641]
module.alb.aws_security_group.alb: Refreshing state... [id=sg-0c5ba7ff4febf2c41]
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[1]: Refreshing state... [id=rtbassoc-0eb2859d866024808]
module.main_vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-0058b1266eaa699cd]
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[0]: Refreshing state... [id=rtbassoc-0b78c8e90f14219b8]
module.main_vpc.aws_route_table_association.private[1]: Refreshing state... [id=rtbassoc-0e9fe3288ca23fd00]
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 planned the following actions, but then encountered a problem:

  # module.github_oidc.aws_iam_role_policy.plan_backend will be updated in-place
  ~ resource "aws_iam_role_policy" "plan_backend" {
        id     = "github-actions-terraform-plan:github-actions-terraform-plan-backend"
        name   = "github-actions-terraform-plan-backend"
      ~ policy = jsonencode(
          ~ {
              ~ Statement = [
                    # (2 unchanged elements hidden)
                    {
                        Action    = [
                            "s3:ListBucket",
                        ]
                        Condition = {
                            StringLike = {
                                "s3:prefix" = [
                                    "terraform-mastery/*",
                                ]
                            }
                        }
                        Effect    = "Allow"
                        Resource  = "arn:aws:s3:::tanayjdev-tf-state-2026-464975960111"
                    },
                  ~ {
                      ~ Resource = "arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-rds-credentials-*" -> "arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-*-rds-credentials-*"
                        # (2 unchanged attributes hidden)
                    },
                ]
                # (1 unchanged attribute hidden)
            }
        )
        # (1 unchanged attribute hidden)
    }

  # 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.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.
Releasing state lock. This may take a few moments...

@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]
module.github_oidc.aws_iam_openid_connect_provider.github_actions: Refreshing state... [id=arn:aws:iam::464975960111:oidc-provider/token.actions.githubusercontent.com]
data.aws_caller_identity.current: Reading...
data.aws_ami.ubuntu: Reading...
module.asg.aws_iam_role.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-role]
module.rds.aws_sns_topic.rds_alerts: Refreshing state... [id=arn:aws:sns:ap-south-1:464975960111:terraform-mastery-dev-rds-alerts]
module.rds.aws_secretsmanager_secret.rds_credentials: Refreshing state... [id=arn:aws:secretsmanager:ap-south-1:464975960111:secret:terraform-mastery-dev-rds-credentials-f2tBVM]
data.aws_availability_zones.available: Reading...
data.aws_ami.latest_packer_build: Reading...
module.main_vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-03aff10d08bf89133]
module.main_vpc.aws_vpc.this: Refreshing state... [id=vpc-016702f0ed6c85506]
module.rds.aws_db_parameter_group.this: Refreshing state... [id=terraform-mastery-dev-pg-params]
data.aws_caller_identity.current: Read complete after 0s [id=464975960111]
data.aws_region.current: Reading...
data.aws_region.current: Read complete after 0s [id=ap-south-1]
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_instance_profile.app_instance: Refreshing state... [id=terraform-mastery-dev-app-instance-profile]
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]
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_attachment.plan_readonly: Refreshing state... [id=github-actions-terraform-plan-20260821195946585400000001]
module.github_oidc.aws_iam_role_policy.plan_backend: Refreshing state... [id=github-actions-terraform-plan:github-actions-terraform-plan-backend]
data.aws_availability_zones.available: Read complete after 1s [id=ap-south-1]
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_subnet.private[1]: Refreshing state... [id=subnet-062363b66b590d170]
module.main_vpc.aws_subnet.private[0]: Refreshing state... [id=subnet-05b0fac0ac4e69049]
module.main_vpc.aws_subnet.public[0]: Refreshing state... [id=subnet-03f83da4c2ede3641]
module.main_vpc.aws_internet_gateway.this: Refreshing state... [id=igw-00d90a79438efefd4]
module.main_vpc.aws_subnet.public[1]: Refreshing state... [id=subnet-0dd762616728a8a65]
module.alb.aws_security_group.alb: Refreshing state... [id=sg-0c5ba7ff4febf2c41]
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.rds.aws_db_subnet_group.this: Refreshing state... [id=terraform-mastery-dev-db-subnet-group]
module.asg.aws_security_group.app: Refreshing state... [id=sg-07b2bfc0d3b4a03e0]
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[1]: Refreshing state... [id=rtbassoc-0eb2859d866024808]
module.main_vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-0058b1266eaa699cd]
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.private[0]: Refreshing state... [id=rtb-0162c380846527788]
module.rds.aws_db_instance.this: Refreshing state... [id=db-U5MUXE5UU73WRDK5DUCL5TYJWI]
module.main_vpc.aws_route_table_association.private[0]: Refreshing state... [id=rtbassoc-0b78c8e90f14219b8]
module.main_vpc.aws_route_table_association.private[1]: Refreshing state... [id=rtbassoc-0e9fe3288ca23fd00]
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 b9aceab into main Aug 21, 2026
5 of 7 checks passed
@tanayjdev
tanayjdev deleted the feat/environment-replication branch August 21, 2026 21:05
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