From 0f6f9fa6da6d5d3dbb5e3313bf34c4134b65b14a Mon Sep 17 00:00:00 2001 From: Chandra Reddy Date: Fri, 16 Aug 2024 13:41:54 -0400 Subject: [PATCH] update route table association --- infrastructure/04_rds.tf | 7 +- infrastructure/terraform.tfstate | 933 +++++++++++++++++++++++- infrastructure/terraform.tfstate.backup | 910 ++++++++++++++++++++++- 3 files changed, 1847 insertions(+), 3 deletions(-) diff --git a/infrastructure/04_rds.tf b/infrastructure/04_rds.tf index 7f51b95..eba56d5 100644 --- a/infrastructure/04_rds.tf +++ b/infrastructure/04_rds.tf @@ -66,8 +66,13 @@ resource "aws_route_table_association" "subnet_association" { route_table_id = aws_route_table.public.id } +resource "aws_route_table_association" "subnet_association_alt" { + subnet_id = aws_subnet.alternative.id + route_table_id = aws_route_table.public.id +} + resource "aws_db_instance" "default" { - identifier = "shared-rds-instance" + identifier = "cm-appfolio-db" allocated_storage = 20 engine = "mysql" engine_version = "8.0" diff --git a/infrastructure/terraform.tfstate b/infrastructure/terraform.tfstate index da722dd..d9b2305 100644 --- a/infrastructure/terraform.tfstate +++ b/infrastructure/terraform.tfstate @@ -1 +1,932 @@ -{"version":4,"terraform_version":"1.8.1","serial":64,"lineage":"54543b65-0785-73d9-c782-458033890453","outputs":{},"resources":[{"mode":"managed","type":"aws_apprunner_auto_scaling_configuration_version","name":"app_scaling","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/6150dabe8ec542e6bd577fce88c429ce","auto_scaling_configuration_name":"app-scaling-config","auto_scaling_configuration_revision":2,"has_associated_service":false,"id":"arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/6150dabe8ec542e6bd577fce88c429ce","is_default":false,"latest":true,"max_concurrency":100,"max_size":3,"min_size":1,"status":"active","tags":{},"tags_all":{}},"sensitive_attributes":[],"private":"bnVsbA=="}]},{"mode":"managed","type":"aws_apprunner_service","name":"app_services","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"index_key":"announcements-dev","status":"tainted","schema_version":0,"attributes":{"arn":null,"auto_scaling_configuration_arn":"arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/6150dabe8ec542e6bd577fce88c429ce","encryption_configuration":[],"health_check_configuration":null,"id":"arn:aws:apprunner:us-east-1:654654512735:service/announcements-dev-service/706120e8ff834a919ff91e451af80092","instance_configuration":[{"cpu":"1024","instance_role_arn":"","memory":"2048"}],"network_configuration":null,"observability_configuration":[],"service_id":null,"service_name":"announcements-dev-service","service_url":null,"source_configuration":[{"authentication_configuration":[{"access_role_arn":"arn:aws:iam::654654512735:role/apprunner-access-role","connection_arn":""}],"auto_deployments_enabled":true,"code_repository":[],"image_repository":[{"image_configuration":[{"port":"8000","runtime_environment_secrets":null,"runtime_environment_variables":null,"start_command":""}],"image_identifier":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-dev:latest","image_repository_type":"ECR"}]}],"status":null,"tags":{"Application":"announcements","Environment":"dev"},"tags_all":{"Application":"announcements","Environment":"dev"}},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["aws_apprunner_auto_scaling_configuration_version.app_scaling","aws_ecr_repository.app_repos","aws_iam_role.apprunner_role"]},{"index_key":"announcements-prod","status":"tainted","schema_version":0,"attributes":{"arn":null,"auto_scaling_configuration_arn":"arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/6150dabe8ec542e6bd577fce88c429ce","encryption_configuration":[],"health_check_configuration":null,"id":"arn:aws:apprunner:us-east-1:654654512735:service/announcements-prod-service/564a860df55e4c748a49c603c768d29d","instance_configuration":[{"cpu":"1024","instance_role_arn":"","memory":"2048"}],"network_configuration":null,"observability_configuration":[],"service_id":null,"service_name":"announcements-prod-service","service_url":null,"source_configuration":[{"authentication_configuration":[{"access_role_arn":"arn:aws:iam::654654512735:role/apprunner-access-role","connection_arn":""}],"auto_deployments_enabled":true,"code_repository":[],"image_repository":[{"image_configuration":[{"port":"8000","runtime_environment_secrets":null,"runtime_environment_variables":null,"start_command":""}],"image_identifier":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-prod:latest","image_repository_type":"ECR"}]}],"status":null,"tags":{"Application":"announcements","Environment":"prod"},"tags_all":{"Application":"announcements","Environment":"prod"}},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["aws_apprunner_auto_scaling_configuration_version.app_scaling","aws_ecr_repository.app_repos","aws_iam_role.apprunner_role"]},{"index_key":"announcements-qa","status":"tainted","schema_version":0,"attributes":{"arn":null,"auto_scaling_configuration_arn":"arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/6150dabe8ec542e6bd577fce88c429ce","encryption_configuration":[],"health_check_configuration":null,"id":"arn:aws:apprunner:us-east-1:654654512735:service/announcements-qa-service/f2efc23c1a44486b98e9093f8501b211","instance_configuration":[{"cpu":"1024","instance_role_arn":"","memory":"2048"}],"network_configuration":null,"observability_configuration":[],"service_id":null,"service_name":"announcements-qa-service","service_url":null,"source_configuration":[{"authentication_configuration":[{"access_role_arn":"arn:aws:iam::654654512735:role/apprunner-access-role","connection_arn":""}],"auto_deployments_enabled":true,"code_repository":[],"image_repository":[{"image_configuration":[{"port":"8000","runtime_environment_secrets":null,"runtime_environment_variables":null,"start_command":""}],"image_identifier":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-qa:latest","image_repository_type":"ECR"}]}],"status":null,"tags":{"Application":"announcements","Environment":"qa"},"tags_all":{"Application":"announcements","Environment":"qa"}},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["aws_apprunner_auto_scaling_configuration_version.app_scaling","aws_ecr_repository.app_repos","aws_iam_role.apprunner_role"]}]},{"mode":"managed","type":"aws_db_instance","name":"default","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":2,"attributes":{"address":"shared-rds-instance.c9o06ok6uz10.us-east-1.rds.amazonaws.com","allocated_storage":20,"allow_major_version_upgrade":null,"apply_immediately":false,"arn":"arn:aws:rds:us-east-1:654654512735:db:shared-rds-instance","auto_minor_version_upgrade":true,"availability_zone":"us-east-1c","backup_retention_period":0,"backup_target":"region","backup_window":"03:43-04:13","blue_green_update":[],"ca_cert_identifier":"rds-ca-rsa2048-g1","character_set_name":"","copy_tags_to_snapshot":false,"custom_iam_instance_profile":"","customer_owned_ip_enabled":false,"db_name":"","db_subnet_group_name":"default-subnet-group","dedicated_log_volume":false,"delete_automated_backups":true,"deletion_protection":false,"domain":"","domain_auth_secret_arn":"","domain_dns_ips":[],"domain_fqdn":"","domain_iam_role_name":"","domain_ou":"","enabled_cloudwatch_logs_exports":[],"endpoint":"shared-rds-instance.c9o06ok6uz10.us-east-1.rds.amazonaws.com:3306","engine":"mysql","engine_lifecycle_support":"open-source-rds-extended-support","engine_version":"8.0","engine_version_actual":"8.0.35","final_snapshot_identifier":null,"hosted_zone_id":"Z2R2ITUGPM61AM","iam_database_authentication_enabled":false,"id":"db-PRDUQGPYMNQGAHRYHI63ZE326E","identifier":"shared-rds-instance","identifier_prefix":"","instance_class":"db.t3.micro","iops":0,"kms_key_id":"","latest_restorable_time":"","license_model":"general-public-license","listener_endpoint":[],"maintenance_window":"thu:10:23-thu:10:53","manage_master_user_password":null,"master_user_secret":[],"master_user_secret_kms_key_id":null,"max_allocated_storage":0,"monitoring_interval":0,"monitoring_role_arn":"","multi_az":false,"nchar_character_set_name":"","network_type":"IPV4","option_group_name":"default:mysql-8-0","parameter_group_name":"default.mysql8.0","password":"password","performance_insights_enabled":false,"performance_insights_kms_key_id":"","performance_insights_retention_period":0,"port":3306,"publicly_accessible":true,"replica_mode":"","replicas":[],"replicate_source_db":"","resource_id":"db-PRDUQGPYMNQGAHRYHI63ZE326E","restore_to_point_in_time":[],"s3_import":[],"skip_final_snapshot":true,"snapshot_identifier":null,"status":"available","storage_encrypted":false,"storage_throughput":0,"storage_type":"gp2","tags":{},"tags_all":{},"timeouts":null,"timezone":"","upgrade_storage_config":null,"username":"admin","vpc_security_group_ids":["sg-0a5775cdfe721d9fc"]},"sensitive_attributes":[[{"type":"get_attr","value":"password"}]],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoyNDAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NDgwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9","dependencies":["aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_db_subnet_group","name":"default","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:rds:us-east-1:654654512735:subgrp:default-subnet-group","description":"Managed by Terraform","id":"default-subnet-group","name":"default-subnet-group","name_prefix":"","subnet_ids":["subnet-05f1531a505d0a3f2","subnet-0dd1831cdad0a1622"],"supported_network_types":["IPV4"],"tags":{},"tags_all":{},"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_ecr_repository","name":"app_repos","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"index_key":"announcements-dev","schema_version":0,"attributes":{"arn":"arn:aws:ecr:us-east-1:654654512735:repository/announcements-dev","encryption_configuration":[{"encryption_type":"AES256","kms_key":""}],"force_delete":true,"id":"announcements-dev","image_scanning_configuration":[{"scan_on_push":false}],"image_tag_mutability":"MUTABLE","name":"announcements-dev","registry_id":"654654512735","repository_url":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-dev","tags":{},"tags_all":{},"timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0="},{"index_key":"announcements-prod","schema_version":0,"attributes":{"arn":"arn:aws:ecr:us-east-1:654654512735:repository/announcements-prod","encryption_configuration":[{"encryption_type":"AES256","kms_key":""}],"force_delete":true,"id":"announcements-prod","image_scanning_configuration":[{"scan_on_push":false}],"image_tag_mutability":"MUTABLE","name":"announcements-prod","registry_id":"654654512735","repository_url":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-prod","tags":{},"tags_all":{},"timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0="},{"index_key":"announcements-qa","schema_version":0,"attributes":{"arn":"arn:aws:ecr:us-east-1:654654512735:repository/announcements-qa","encryption_configuration":[{"encryption_type":"AES256","kms_key":""}],"force_delete":true,"id":"announcements-qa","image_scanning_configuration":[{"scan_on_push":false}],"image_tag_mutability":"MUTABLE","name":"announcements-qa","registry_id":"654654512735","repository_url":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-qa","tags":{},"tags_all":{},"timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0="}]},{"mode":"managed","type":"aws_iam_policy","name":"ecr_access_policy","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy","attachment_count":1,"description":"","id":"arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy","name":"apprunner-ecr-access-policy","name_prefix":"","path":"/","policy":"{\"Statement\":[{\"Action\":[\"ecr:GetDownloadUrlForLayer\",\"ecr:BatchGetImage\",\"ecr:BatchCheckLayerAvailability\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":\"ecr:GetAuthorizationToken\",\"Effect\":\"Allow\",\"Resource\":\"*\"}],\"Version\":\"2012-10-17\"}","policy_id":"ANPAZQ3DTDZP6Q4RC5C7M","tags":{},"tags_all":{}},"sensitive_attributes":[],"private":"bnVsbA=="}]},{"mode":"managed","type":"aws_iam_role","name":"apprunner_role","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:iam::654654512735:role/apprunner-access-role","assume_role_policy":"{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"build.apprunner.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}","create_date":"2024-08-16T08:18:50Z","description":"","force_detach_policies":false,"id":"apprunner-access-role","inline_policy":[],"managed_policy_arns":["arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy"],"max_session_duration":3600,"name":"apprunner-access-role","name_prefix":"","path":"/","permissions_boundary":"","tags":{},"tags_all":{},"unique_id":"AROAZQ3DTDZPUHMKZFR6R"},"sensitive_attributes":[],"private":"bnVsbA=="}]},{"mode":"managed","type":"aws_iam_role_policy_attachment","name":"apprunner_ecr_policy_attach","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"id":"apprunner-access-role-20240816081851040800000001","policy_arn":"arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy","role":"apprunner-access-role"},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["aws_iam_policy.ecr_access_policy","aws_iam_role.apprunner_role"]}]},{"mode":"managed","type":"aws_internet_gateway","name":"main","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:internet-gateway/igw-0c8777a85cb762af7","id":"igw-0c8777a85cb762af7","owner_id":"654654512735","tags":{},"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_route_table","name":"public","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:route-table/rtb-010c9926d51dcefab","id":"rtb-010c9926d51dcefab","owner_id":"654654512735","propagating_vgws":[],"route":[{"carrier_gateway_id":"","cidr_block":"0.0.0.0/0","core_network_arn":"","destination_prefix_list_id":"","egress_only_gateway_id":"","gateway_id":"igw-0c8777a85cb762af7","ipv6_cidr_block":"","local_gateway_id":"","nat_gateway_id":"","network_interface_id":"","transit_gateway_id":"","vpc_endpoint_id":"","vpc_peering_connection_id":""}],"tags":{},"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19","dependencies":["aws_internet_gateway.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_route_table_association","name":"subnet_association","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"gateway_id":"","id":"rtbassoc-05c6944a857280673","route_table_id":"rtb-010c9926d51dcefab","subnet_id":"subnet-05f1531a505d0a3f2","timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19","dependencies":["aws_internet_gateway.main","aws_route_table.public","aws_subnet.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_security_group","name":"rds_sg","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:security-group/sg-0a5775cdfe721d9fc","description":"Managed by Terraform","egress":[{"cidr_blocks":["0.0.0.0/0"],"description":"","from_port":0,"ipv6_cidr_blocks":[],"prefix_list_ids":[],"protocol":"-1","security_groups":[],"self":false,"to_port":0}],"id":"sg-0a5775cdfe721d9fc","ingress":[{"cidr_blocks":["0.0.0.0/0"],"description":"","from_port":3306,"ipv6_cidr_blocks":[],"prefix_list_ids":[],"protocol":"tcp","security_groups":[],"self":false,"to_port":3306}],"name":"terraform-20240816081903263700000002","name_prefix":"terraform-","owner_id":"654654512735","revoke_rules_on_delete":false,"tags":{},"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_subnet","name":"alternative","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:subnet/subnet-0dd1831cdad0a1622","assign_ipv6_address_on_creation":false,"availability_zone":"us-east-1b","availability_zone_id":"use1-az2","cidr_block":"10.0.2.0/24","customer_owned_ipv4_pool":"","enable_dns64":false,"enable_lni_at_device_index":0,"enable_resource_name_dns_a_record_on_launch":false,"enable_resource_name_dns_aaaa_record_on_launch":false,"id":"subnet-0dd1831cdad0a1622","ipv6_cidr_block":"","ipv6_cidr_block_association_id":"","ipv6_native":false,"map_customer_owned_ip_on_launch":false,"map_public_ip_on_launch":true,"outpost_arn":"","owner_id":"654654512735","private_dns_hostname_type_on_launch":"ip-name","tags":{},"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_subnet","name":"main","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:subnet/subnet-05f1531a505d0a3f2","assign_ipv6_address_on_creation":false,"availability_zone":"us-east-1c","availability_zone_id":"use1-az4","cidr_block":"10.0.1.0/24","customer_owned_ipv4_pool":"","enable_dns64":false,"enable_lni_at_device_index":0,"enable_resource_name_dns_a_record_on_launch":false,"enable_resource_name_dns_aaaa_record_on_launch":false,"id":"subnet-05f1531a505d0a3f2","ipv6_cidr_block":"","ipv6_cidr_block_association_id":"","ipv6_native":false,"map_customer_owned_ip_on_launch":false,"map_public_ip_on_launch":true,"outpost_arn":"","owner_id":"654654512735","private_dns_hostname_type_on_launch":"ip-name","tags":{},"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_vpc","name":"main","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:vpc/vpc-09e72de5eaf98db84","assign_generated_ipv6_cidr_block":false,"cidr_block":"10.0.0.0/16","default_network_acl_id":"acl-0291bfe9a40b93578","default_route_table_id":"rtb-0470b9bb0ead6d1af","default_security_group_id":"sg-07a9df6c481379eec","dhcp_options_id":"dopt-0448c905aa54596ac","enable_dns_hostnames":true,"enable_dns_support":true,"enable_network_address_usage_metrics":false,"id":"vpc-09e72de5eaf98db84","instance_tenancy":"default","ipv4_ipam_pool_id":null,"ipv4_netmask_length":null,"ipv6_association_id":"","ipv6_cidr_block":"","ipv6_cidr_block_network_border_group":"","ipv6_ipam_pool_id":"","ipv6_netmask_length":0,"main_route_table_id":"rtb-0470b9bb0ead6d1af","owner_id":"654654512735","tags":{},"tags_all":{}},"sensitive_attributes":[],"private":"eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ=="}]},{"mode":"managed","type":"null_resource","name":"create_databases","provider":"provider[\"registry.opentofu.org/hashicorp/null\"]","instances":[{"index_key":"announcements-dev","schema_version":0,"attributes":{"id":"7230401334406842675","triggers":null},"sensitive_attributes":[],"dependencies":["aws_db_instance.default","aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]},{"index_key":"announcements-prod","status":"tainted","schema_version":0,"attributes":{"id":"2597574772646147365","triggers":null},"sensitive_attributes":[],"dependencies":["aws_db_instance.default","aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]},{"index_key":"announcements-qa","schema_version":0,"attributes":{"id":"9047930901830312884","triggers":null},"sensitive_attributes":[],"dependencies":["aws_db_instance.default","aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]}]}],"check_results":null} +{ + "version": 4, + "terraform_version": "1.7.2", + "serial": 88, + "lineage": "54543b65-0785-73d9-c782-458033890453", + "outputs": {}, + "resources": [ + { + "mode": "managed", + "type": "aws_apprunner_auto_scaling_configuration_version", + "name": "app_scaling", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "auto_scaling_configuration_name": "app-scaling-config", + "auto_scaling_configuration_revision": 2, + "has_associated_service": true, + "id": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "is_default": false, + "latest": true, + "max_concurrency": 100, + "max_size": 3, + "min_size": 1, + "status": "active", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_apprunner_service", + "name": "app_services", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "index_key": "announcements-dev", + "status": "tainted", + "schema_version": 0, + "attributes": { + "arn": null, + "auto_scaling_configuration_arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "encryption_configuration": [], + "health_check_configuration": null, + "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-dev-service/f2f9aac6114348da8f62b2cd87c25f43", + "instance_configuration": [ + { + "cpu": "1024", + "instance_role_arn": "", + "memory": "2048" + } + ], + "network_configuration": null, + "observability_configuration": [], + "service_id": null, + "service_name": "announcements-dev-service", + "service_url": null, + "source_configuration": [ + { + "authentication_configuration": [ + { + "access_role_arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "connection_arn": "" + } + ], + "auto_deployments_enabled": true, + "code_repository": [], + "image_repository": [ + { + "image_configuration": [ + { + "port": "8000", + "runtime_environment_secrets": null, + "runtime_environment_variables": null, + "start_command": "" + } + ], + "image_identifier": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-dev:latest", + "image_repository_type": "ECR" + } + ] + } + ], + "status": null, + "tags": { + "Application": "announcements", + "Environment": "dev" + }, + "tags_all": { + "Application": "announcements", + "Environment": "dev" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_apprunner_auto_scaling_configuration_version.app_scaling", + "aws_ecr_repository.app_repos", + "aws_iam_role.apprunner_role" + ] + }, + { + "index_key": "announcements-prod", + "status": "tainted", + "schema_version": 0, + "attributes": { + "arn": null, + "auto_scaling_configuration_arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "encryption_configuration": [], + "health_check_configuration": null, + "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-prod-service/995a33c3778b4e51910d91214295b867", + "instance_configuration": [ + { + "cpu": "1024", + "instance_role_arn": "", + "memory": "2048" + } + ], + "network_configuration": null, + "observability_configuration": [], + "service_id": null, + "service_name": "announcements-prod-service", + "service_url": null, + "source_configuration": [ + { + "authentication_configuration": [ + { + "access_role_arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "connection_arn": "" + } + ], + "auto_deployments_enabled": true, + "code_repository": [], + "image_repository": [ + { + "image_configuration": [ + { + "port": "8000", + "runtime_environment_secrets": null, + "runtime_environment_variables": null, + "start_command": "" + } + ], + "image_identifier": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-prod:latest", + "image_repository_type": "ECR" + } + ] + } + ], + "status": null, + "tags": { + "Application": "announcements", + "Environment": "prod" + }, + "tags_all": { + "Application": "announcements", + "Environment": "prod" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_apprunner_auto_scaling_configuration_version.app_scaling", + "aws_ecr_repository.app_repos", + "aws_iam_role.apprunner_role" + ] + }, + { + "index_key": "announcements-qa", + "status": "tainted", + "schema_version": 0, + "attributes": { + "arn": null, + "auto_scaling_configuration_arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "encryption_configuration": [], + "health_check_configuration": null, + "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-qa-service/3eff561ba4e84f0691a1cfa951c8adeb", + "instance_configuration": [ + { + "cpu": "1024", + "instance_role_arn": "", + "memory": "2048" + } + ], + "network_configuration": null, + "observability_configuration": [], + "service_id": null, + "service_name": "announcements-qa-service", + "service_url": null, + "source_configuration": [ + { + "authentication_configuration": [ + { + "access_role_arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "connection_arn": "" + } + ], + "auto_deployments_enabled": true, + "code_repository": [], + "image_repository": [ + { + "image_configuration": [ + { + "port": "8000", + "runtime_environment_secrets": null, + "runtime_environment_variables": null, + "start_command": "" + } + ], + "image_identifier": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-qa:latest", + "image_repository_type": "ECR" + } + ] + } + ], + "status": null, + "tags": { + "Application": "announcements", + "Environment": "qa" + }, + "tags_all": { + "Application": "announcements", + "Environment": "qa" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_apprunner_auto_scaling_configuration_version.app_scaling", + "aws_ecr_repository.app_repos", + "aws_iam_role.apprunner_role" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_db_instance", + "name": "default", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "address": "cm-appfolio-db.c9o06ok6uz10.us-east-1.rds.amazonaws.com", + "allocated_storage": 20, + "allow_major_version_upgrade": null, + "apply_immediately": false, + "arn": "arn:aws:rds:us-east-1:654654512735:db:cm-appfolio-db", + "auto_minor_version_upgrade": true, + "availability_zone": "us-east-1b", + "backup_retention_period": 0, + "backup_target": "region", + "backup_window": "03:03-03:33", + "blue_green_update": [], + "ca_cert_identifier": "rds-ca-rsa2048-g1", + "character_set_name": "", + "copy_tags_to_snapshot": false, + "custom_iam_instance_profile": "", + "customer_owned_ip_enabled": false, + "db_name": "", + "db_subnet_group_name": "default-subnet-group", + "dedicated_log_volume": false, + "delete_automated_backups": true, + "deletion_protection": false, + "domain": "", + "domain_auth_secret_arn": "", + "domain_dns_ips": [], + "domain_fqdn": "", + "domain_iam_role_name": "", + "domain_ou": "", + "enabled_cloudwatch_logs_exports": [], + "endpoint": "cm-appfolio-db.c9o06ok6uz10.us-east-1.rds.amazonaws.com:3306", + "engine": "mysql", + "engine_lifecycle_support": "open-source-rds-extended-support", + "engine_version": "8.0", + "engine_version_actual": "8.0.35", + "final_snapshot_identifier": null, + "hosted_zone_id": "Z2R2ITUGPM61AM", + "iam_database_authentication_enabled": false, + "id": "db-E2YHLYEHUJQAXFRA4EADXL3WS4", + "identifier": "cm-appfolio-db", + "identifier_prefix": "", + "instance_class": "db.t3.micro", + "iops": 0, + "kms_key_id": "", + "latest_restorable_time": "", + "license_model": "general-public-license", + "listener_endpoint": [], + "maintenance_window": "mon:09:46-mon:10:16", + "manage_master_user_password": null, + "master_user_secret": [], + "master_user_secret_kms_key_id": null, + "max_allocated_storage": 0, + "monitoring_interval": 0, + "monitoring_role_arn": "", + "multi_az": false, + "nchar_character_set_name": "", + "network_type": "IPV4", + "option_group_name": "default:mysql-8-0", + "parameter_group_name": "default.mysql8.0", + "password": "my_secure_passcode", + "performance_insights_enabled": false, + "performance_insights_kms_key_id": "", + "performance_insights_retention_period": 0, + "port": 3306, + "publicly_accessible": true, + "replica_mode": "", + "replicas": [], + "replicate_source_db": "", + "resource_id": "db-E2YHLYEHUJQAXFRA4EADXL3WS4", + "restore_to_point_in_time": [], + "s3_import": [], + "skip_final_snapshot": true, + "snapshot_identifier": null, + "status": "available", + "storage_encrypted": false, + "storage_throughput": 0, + "storage_type": "gp2", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "timezone": "", + "upgrade_storage_config": null, + "username": "admin", + "vpc_security_group_ids": [ + "sg-03bee5a69571c738a" + ] + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "password" + } + ] + ], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoyNDAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NDgwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9", + "dependencies": [ + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_db_subnet_group", + "name": "default", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:rds:us-east-1:654654512735:subgrp:default-subnet-group", + "description": "Managed by Terraform", + "id": "default-subnet-group", + "name": "default-subnet-group", + "name_prefix": "", + "subnet_ids": [ + "subnet-096e455d5c7a3a422", + "subnet-0d2e6be1cde7f217b" + ], + "supported_network_types": [ + "IPV4" + ], + "tags": {}, + "tags_all": {}, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_ecr_repository", + "name": "app_repos", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "index_key": "announcements-dev", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:654654512735:repository/announcements-dev", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": true, + "id": "announcements-dev", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "announcements-dev", + "registry_id": "654654512735", + "repository_url": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-dev", + "tags": {}, + "tags_all": {}, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + }, + { + "index_key": "announcements-prod", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:654654512735:repository/announcements-prod", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": true, + "id": "announcements-prod", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "announcements-prod", + "registry_id": "654654512735", + "repository_url": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-prod", + "tags": {}, + "tags_all": {}, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + }, + { + "index_key": "announcements-qa", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:654654512735:repository/announcements-qa", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": true, + "id": "announcements-qa", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "announcements-qa", + "registry_id": "654654512735", + "repository_url": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-qa", + "tags": {}, + "tags_all": {}, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_policy", + "name": "ecr_access_policy", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy", + "attachment_count": 1, + "description": "", + "id": "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy", + "name": "apprunner-ecr-access-policy", + "name_prefix": "", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"ecr:GetDownloadUrlForLayer\",\"ecr:BatchGetImage\",\"ecr:BatchCheckLayerAvailability\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":\"ecr:GetAuthorizationToken\",\"Effect\":\"Allow\",\"Resource\":\"*\"}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAZQ3DTDZP43U566H74", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role", + "name": "apprunner_role", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"build.apprunner.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", + "create_date": "2024-08-16T16:25:28Z", + "description": "", + "force_detach_policies": false, + "id": "apprunner-access-role", + "inline_policy": [ + { + "name": "AWSRevokeOlderSessions", + "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"*\"],\"Condition\":{\"DateLessThan\":{\"aws:TokenIssueTime\":\"2024-08-16T17:12:14.157Z\"}},\"Effect\":\"Deny\",\"Resource\":[\"*\"]}]}" + } + ], + "managed_policy_arns": [ + "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy" + ], + "max_session_duration": 3600, + "name": "apprunner-access-role", + "name_prefix": "", + "path": "/", + "permissions_boundary": "", + "tags": {}, + "tags_all": {}, + "unique_id": "AROAZQ3DTDZPRYJPVAD2J" + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "apprunner_ecr_policy_attach", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "apprunner-access-role-20240816162528323500000001", + "policy_arn": "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy", + "role": "apprunner-access-role" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_policy.ecr_access_policy", + "aws_iam_role.apprunner_role" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_internet_gateway", + "name": "main", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:internet-gateway/igw-0dcdfce5a928d0b9d", + "id": "igw-0dcdfce5a928d0b9d", + "owner_id": "654654512735", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "public", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:route-table/rtb-07c1aff52017884c9", + "id": "rtb-07c1aff52017884c9", + "owner_id": "654654512735", + "propagating_vgws": [], + "route": [ + { + "carrier_gateway_id": "", + "cidr_block": "0.0.0.0/0", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0dcdfce5a928d0b9d", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "subnet_association", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-00f461b65155427d3", + "route_table_id": "rtb-07c1aff52017884c9", + "subnet_id": "subnet-0d2e6be1cde7f217b", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.main", + "aws_route_table.public", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "subnet_association_alt", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-0cb00355904328353", + "route_table_id": "rtb-07c1aff52017884c9", + "subnet_id": "subnet-096e455d5c7a3a422", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.main", + "aws_route_table.public", + "aws_subnet.alternative", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "rds_sg", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:security-group/sg-03bee5a69571c738a", + "description": "Managed by Terraform", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-03bee5a69571c738a", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 3306, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 3306 + } + ], + "name": "terraform-20240816162539407200000002", + "name_prefix": "terraform-", + "owner_id": "654654512735", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "alternative", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:subnet/subnet-096e455d5c7a3a422", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-1b", + "availability_zone_id": "use1-az2", + "cidr_block": "10.0.2.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-096e455d5c7a3a422", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": true, + "outpost_arn": "", + "owner_id": "654654512735", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "main", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:subnet/subnet-0d2e6be1cde7f217b", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-1c", + "availability_zone_id": "use1-az4", + "cidr_block": "10.0.1.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0d2e6be1cde7f217b", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": true, + "outpost_arn": "", + "owner_id": "654654512735", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc", + "name": "main", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:vpc/vpc-0f0173b2df9535dd6", + "assign_generated_ipv6_cidr_block": false, + "cidr_block": "10.0.0.0/16", + "default_network_acl_id": "acl-044622538dd3a452b", + "default_route_table_id": "rtb-057909b952cd7af9e", + "default_security_group_id": "sg-099926fded9028a44", + "dhcp_options_id": "dopt-0448c905aa54596ac", + "enable_dns_hostnames": true, + "enable_dns_support": true, + "enable_network_address_usage_metrics": false, + "id": "vpc-0f0173b2df9535dd6", + "instance_tenancy": "default", + "ipv4_ipam_pool_id": null, + "ipv4_netmask_length": null, + "ipv6_association_id": "", + "ipv6_cidr_block": "", + "ipv6_cidr_block_network_border_group": "", + "ipv6_ipam_pool_id": "", + "ipv6_netmask_length": 0, + "main_route_table_id": "rtb-057909b952cd7af9e", + "owner_id": "654654512735", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + }, + { + "mode": "managed", + "type": "null_resource", + "name": "create_databases", + "provider": "provider[\"registry.opentofu.org/hashicorp/null\"]", + "instances": [ + { + "index_key": "announcements-dev", + "schema_version": 0, + "attributes": { + "id": "6489021364927640016", + "triggers": null + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_db_instance.default", + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + }, + { + "index_key": "announcements-prod", + "schema_version": 0, + "attributes": { + "id": "5159699377309570765", + "triggers": null + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_db_instance.default", + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + }, + { + "index_key": "announcements-qa", + "schema_version": 0, + "attributes": { + "id": "4942270219861943391", + "triggers": null + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_db_instance.default", + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + } + ], + "check_results": null +} diff --git a/infrastructure/terraform.tfstate.backup b/infrastructure/terraform.tfstate.backup index 821714a..e7b20b1 100644 --- a/infrastructure/terraform.tfstate.backup +++ b/infrastructure/terraform.tfstate.backup @@ -1 +1,909 @@ -{"version":4,"terraform_version":"1.8.1","serial":62,"lineage":"54543b65-0785-73d9-c782-458033890453","outputs":{},"resources":[{"mode":"managed","type":"aws_apprunner_auto_scaling_configuration_version","name":"app_scaling","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/6150dabe8ec542e6bd577fce88c429ce","auto_scaling_configuration_name":"app-scaling-config","auto_scaling_configuration_revision":2,"has_associated_service":false,"id":"arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/6150dabe8ec542e6bd577fce88c429ce","is_default":false,"latest":true,"max_concurrency":100,"max_size":3,"min_size":1,"status":"active","tags":null,"tags_all":{}},"sensitive_attributes":[],"private":"bnVsbA=="}]},{"mode":"managed","type":"aws_db_instance","name":"default","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":2,"attributes":{"address":"shared-rds-instance.c9o06ok6uz10.us-east-1.rds.amazonaws.com","allocated_storage":20,"allow_major_version_upgrade":null,"apply_immediately":false,"arn":"arn:aws:rds:us-east-1:654654512735:db:shared-rds-instance","auto_minor_version_upgrade":true,"availability_zone":"us-east-1c","backup_retention_period":0,"backup_target":"region","backup_window":"03:43-04:13","blue_green_update":[],"ca_cert_identifier":"rds-ca-rsa2048-g1","character_set_name":"","copy_tags_to_snapshot":false,"custom_iam_instance_profile":"","customer_owned_ip_enabled":false,"db_name":"","db_subnet_group_name":"default-subnet-group","dedicated_log_volume":false,"delete_automated_backups":true,"deletion_protection":false,"domain":"","domain_auth_secret_arn":"","domain_dns_ips":null,"domain_fqdn":"","domain_iam_role_name":"","domain_ou":"","enabled_cloudwatch_logs_exports":null,"endpoint":"shared-rds-instance.c9o06ok6uz10.us-east-1.rds.amazonaws.com:3306","engine":"mysql","engine_lifecycle_support":"open-source-rds-extended-support","engine_version":"8.0","engine_version_actual":"8.0.35","final_snapshot_identifier":null,"hosted_zone_id":"Z2R2ITUGPM61AM","iam_database_authentication_enabled":false,"id":"db-PRDUQGPYMNQGAHRYHI63ZE326E","identifier":"shared-rds-instance","identifier_prefix":"","instance_class":"db.t3.micro","iops":0,"kms_key_id":"","latest_restorable_time":"","license_model":"general-public-license","listener_endpoint":[],"maintenance_window":"thu:10:23-thu:10:53","manage_master_user_password":null,"master_user_secret":[],"master_user_secret_kms_key_id":null,"max_allocated_storage":0,"monitoring_interval":0,"monitoring_role_arn":"","multi_az":false,"nchar_character_set_name":"","network_type":"IPV4","option_group_name":"default:mysql-8-0","parameter_group_name":"default.mysql8.0","password":"password","performance_insights_enabled":false,"performance_insights_kms_key_id":"","performance_insights_retention_period":0,"port":3306,"publicly_accessible":true,"replica_mode":"","replicas":[],"replicate_source_db":"","resource_id":"db-PRDUQGPYMNQGAHRYHI63ZE326E","restore_to_point_in_time":[],"s3_import":[],"skip_final_snapshot":true,"snapshot_identifier":null,"status":"available","storage_encrypted":false,"storage_throughput":0,"storage_type":"gp2","tags":null,"tags_all":{},"timeouts":null,"timezone":"","upgrade_storage_config":null,"username":"admin","vpc_security_group_ids":["sg-0a5775cdfe721d9fc"]},"sensitive_attributes":[[{"type":"get_attr","value":"password"}]],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoyNDAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NDgwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9","dependencies":["aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_db_subnet_group","name":"default","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:rds:us-east-1:654654512735:subgrp:default-subnet-group","description":"Managed by Terraform","id":"default-subnet-group","name":"default-subnet-group","name_prefix":"","subnet_ids":["subnet-05f1531a505d0a3f2","subnet-0dd1831cdad0a1622"],"supported_network_types":["IPV4"],"tags":null,"tags_all":{},"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_ecr_repository","name":"app_repos","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"index_key":"announcements-dev","schema_version":0,"attributes":{"arn":"arn:aws:ecr:us-east-1:654654512735:repository/announcements-dev","encryption_configuration":[{"encryption_type":"AES256","kms_key":""}],"force_delete":true,"id":"announcements-dev","image_scanning_configuration":[{"scan_on_push":false}],"image_tag_mutability":"MUTABLE","name":"announcements-dev","registry_id":"654654512735","repository_url":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-dev","tags":null,"tags_all":{},"timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0="},{"index_key":"announcements-prod","schema_version":0,"attributes":{"arn":"arn:aws:ecr:us-east-1:654654512735:repository/announcements-prod","encryption_configuration":[{"encryption_type":"AES256","kms_key":""}],"force_delete":true,"id":"announcements-prod","image_scanning_configuration":[{"scan_on_push":false}],"image_tag_mutability":"MUTABLE","name":"announcements-prod","registry_id":"654654512735","repository_url":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-prod","tags":null,"tags_all":{},"timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0="},{"index_key":"announcements-qa","schema_version":0,"attributes":{"arn":"arn:aws:ecr:us-east-1:654654512735:repository/announcements-qa","encryption_configuration":[{"encryption_type":"AES256","kms_key":""}],"force_delete":true,"id":"announcements-qa","image_scanning_configuration":[{"scan_on_push":false}],"image_tag_mutability":"MUTABLE","name":"announcements-qa","registry_id":"654654512735","repository_url":"654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-qa","tags":null,"tags_all":{},"timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0="}]},{"mode":"managed","type":"aws_iam_policy","name":"ecr_access_policy","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy","attachment_count":0,"description":"","id":"arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy","name":"apprunner-ecr-access-policy","name_prefix":"","path":"/","policy":"{\"Statement\":[{\"Action\":[\"ecr:GetDownloadUrlForLayer\",\"ecr:BatchGetImage\",\"ecr:BatchCheckLayerAvailability\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":\"ecr:GetAuthorizationToken\",\"Effect\":\"Allow\",\"Resource\":\"*\"}],\"Version\":\"2012-10-17\"}","policy_id":"ANPAZQ3DTDZP6Q4RC5C7M","tags":null,"tags_all":{}},"sensitive_attributes":[],"private":"bnVsbA=="}]},{"mode":"managed","type":"aws_iam_role","name":"apprunner_role","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:iam::654654512735:role/apprunner-access-role","assume_role_policy":"{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"build.apprunner.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}","create_date":"2024-08-16T08:18:50Z","description":"","force_detach_policies":false,"id":"apprunner-access-role","inline_policy":[],"managed_policy_arns":[],"max_session_duration":3600,"name":"apprunner-access-role","name_prefix":"","path":"/","permissions_boundary":"","tags":null,"tags_all":{},"unique_id":"AROAZQ3DTDZPUHMKZFR6R"},"sensitive_attributes":[],"private":"bnVsbA=="}]},{"mode":"managed","type":"aws_iam_role_policy_attachment","name":"apprunner_ecr_policy_attach","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"id":"apprunner-access-role-20240816081851040800000001","policy_arn":"arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy","role":"apprunner-access-role"},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["aws_iam_policy.ecr_access_policy","aws_iam_role.apprunner_role"]}]},{"mode":"managed","type":"aws_internet_gateway","name":"main","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:internet-gateway/igw-0c8777a85cb762af7","id":"igw-0c8777a85cb762af7","owner_id":"654654512735","tags":null,"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_route_table","name":"public","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:route-table/rtb-010c9926d51dcefab","id":"rtb-010c9926d51dcefab","owner_id":"654654512735","propagating_vgws":[],"route":[{"carrier_gateway_id":"","cidr_block":"0.0.0.0/0","core_network_arn":"","destination_prefix_list_id":"","egress_only_gateway_id":"","gateway_id":"igw-0c8777a85cb762af7","ipv6_cidr_block":"","local_gateway_id":"","nat_gateway_id":"","network_interface_id":"","transit_gateway_id":"","vpc_endpoint_id":"","vpc_peering_connection_id":""}],"tags":null,"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19","dependencies":["aws_internet_gateway.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_route_table_association","name":"subnet_association","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"gateway_id":"","id":"rtbassoc-05c6944a857280673","route_table_id":"rtb-010c9926d51dcefab","subnet_id":"subnet-05f1531a505d0a3f2","timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19","dependencies":["aws_internet_gateway.main","aws_route_table.public","aws_subnet.main","aws_vpc.main"]}]},{"mode":"managed","type":"aws_security_group","name":"rds_sg","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:security-group/sg-0a5775cdfe721d9fc","description":"Managed by Terraform","egress":[{"cidr_blocks":["0.0.0.0/0"],"description":"","from_port":0,"ipv6_cidr_blocks":[],"prefix_list_ids":[],"protocol":"-1","security_groups":[],"self":false,"to_port":0}],"id":"sg-0a5775cdfe721d9fc","ingress":[{"cidr_blocks":["0.0.0.0/0"],"description":"","from_port":3306,"ipv6_cidr_blocks":[],"prefix_list_ids":[],"protocol":"tcp","security_groups":[],"self":false,"to_port":3306}],"name":"terraform-20240816081903263700000002","name_prefix":"terraform-","owner_id":"654654512735","revoke_rules_on_delete":false,"tags":null,"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_subnet","name":"alternative","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:subnet/subnet-0dd1831cdad0a1622","assign_ipv6_address_on_creation":false,"availability_zone":"us-east-1b","availability_zone_id":"use1-az2","cidr_block":"10.0.2.0/24","customer_owned_ipv4_pool":"","enable_dns64":false,"enable_lni_at_device_index":0,"enable_resource_name_dns_a_record_on_launch":false,"enable_resource_name_dns_aaaa_record_on_launch":false,"id":"subnet-0dd1831cdad0a1622","ipv6_cidr_block":"","ipv6_cidr_block_association_id":"","ipv6_native":false,"map_customer_owned_ip_on_launch":false,"map_public_ip_on_launch":true,"outpost_arn":"","owner_id":"654654512735","private_dns_hostname_type_on_launch":"ip-name","tags":null,"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_subnet","name":"main","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:subnet/subnet-05f1531a505d0a3f2","assign_ipv6_address_on_creation":false,"availability_zone":"us-east-1c","availability_zone_id":"use1-az4","cidr_block":"10.0.1.0/24","customer_owned_ipv4_pool":"","enable_dns64":false,"enable_lni_at_device_index":0,"enable_resource_name_dns_a_record_on_launch":false,"enable_resource_name_dns_aaaa_record_on_launch":false,"id":"subnet-05f1531a505d0a3f2","ipv6_cidr_block":"","ipv6_cidr_block_association_id":"","ipv6_native":false,"map_customer_owned_ip_on_launch":false,"map_public_ip_on_launch":true,"outpost_arn":"","owner_id":"654654512735","private_dns_hostname_type_on_launch":"ip-name","tags":null,"tags_all":{},"timeouts":null,"vpc_id":"vpc-09e72de5eaf98db84"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9","dependencies":["aws_vpc.main"]}]},{"mode":"managed","type":"aws_vpc","name":"main","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:ec2:us-east-1:654654512735:vpc/vpc-09e72de5eaf98db84","assign_generated_ipv6_cidr_block":false,"cidr_block":"10.0.0.0/16","default_network_acl_id":"acl-0291bfe9a40b93578","default_route_table_id":"rtb-0470b9bb0ead6d1af","default_security_group_id":"sg-07a9df6c481379eec","dhcp_options_id":"dopt-0448c905aa54596ac","enable_dns_hostnames":true,"enable_dns_support":true,"enable_network_address_usage_metrics":false,"id":"vpc-09e72de5eaf98db84","instance_tenancy":"default","ipv4_ipam_pool_id":null,"ipv4_netmask_length":null,"ipv6_association_id":"","ipv6_cidr_block":"","ipv6_cidr_block_network_border_group":"","ipv6_ipam_pool_id":"","ipv6_netmask_length":0,"main_route_table_id":"rtb-0470b9bb0ead6d1af","owner_id":"654654512735","tags":null,"tags_all":{}},"sensitive_attributes":[],"private":"eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ=="}]},{"mode":"managed","type":"null_resource","name":"create_databases","provider":"provider[\"registry.opentofu.org/hashicorp/null\"]","instances":[{"index_key":"announcements-dev","status":"tainted","schema_version":0,"attributes":{"id":"7448355182121934120","triggers":null},"sensitive_attributes":[],"dependencies":["aws_db_instance.default","aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]},{"index_key":"announcements-prod","status":"tainted","schema_version":0,"attributes":{"id":"7191356064819617910","triggers":null},"sensitive_attributes":[],"dependencies":["aws_db_instance.default","aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]},{"index_key":"announcements-qa","status":"tainted","schema_version":0,"attributes":{"id":"972924826319986825","triggers":null},"sensitive_attributes":[],"dependencies":["aws_db_instance.default","aws_db_subnet_group.default","aws_security_group.rds_sg","aws_subnet.alternative","aws_subnet.main","aws_vpc.main"]}]}],"check_results":null} +{ + "version": 4, + "terraform_version": "1.7.2", + "serial": 86, + "lineage": "54543b65-0785-73d9-c782-458033890453", + "outputs": {}, + "resources": [ + { + "mode": "managed", + "type": "aws_apprunner_auto_scaling_configuration_version", + "name": "app_scaling", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "auto_scaling_configuration_name": "app-scaling-config", + "auto_scaling_configuration_revision": 2, + "has_associated_service": false, + "id": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "is_default": false, + "latest": true, + "max_concurrency": 100, + "max_size": 3, + "min_size": 1, + "status": "active", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_apprunner_service", + "name": "app_services", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "index_key": "announcements-dev", + "status": "tainted", + "schema_version": 0, + "attributes": { + "arn": null, + "auto_scaling_configuration_arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "encryption_configuration": [], + "health_check_configuration": null, + "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-dev-service/c92601edb16a4e288bff42fb13aa4ecf", + "instance_configuration": [ + { + "cpu": "1024", + "instance_role_arn": "", + "memory": "2048" + } + ], + "network_configuration": null, + "observability_configuration": [], + "service_id": null, + "service_name": "announcements-dev-service", + "service_url": null, + "source_configuration": [ + { + "authentication_configuration": [ + { + "access_role_arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "connection_arn": "" + } + ], + "auto_deployments_enabled": true, + "code_repository": [], + "image_repository": [ + { + "image_configuration": [ + { + "port": "8000", + "runtime_environment_secrets": null, + "runtime_environment_variables": null, + "start_command": "" + } + ], + "image_identifier": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-dev:latest", + "image_repository_type": "ECR" + } + ] + } + ], + "status": null, + "tags": { + "Application": "announcements", + "Environment": "dev" + }, + "tags_all": { + "Application": "announcements", + "Environment": "dev" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_apprunner_auto_scaling_configuration_version.app_scaling", + "aws_ecr_repository.app_repos", + "aws_iam_role.apprunner_role" + ] + }, + { + "index_key": "announcements-prod", + "status": "tainted", + "schema_version": 0, + "attributes": { + "arn": null, + "auto_scaling_configuration_arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "encryption_configuration": [], + "health_check_configuration": null, + "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-prod-service/350b7b4c69524f01af5361015e80e5ca", + "instance_configuration": [ + { + "cpu": "1024", + "instance_role_arn": "", + "memory": "2048" + } + ], + "network_configuration": null, + "observability_configuration": [], + "service_id": null, + "service_name": "announcements-prod-service", + "service_url": null, + "source_configuration": [ + { + "authentication_configuration": [ + { + "access_role_arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "connection_arn": "" + } + ], + "auto_deployments_enabled": true, + "code_repository": [], + "image_repository": [ + { + "image_configuration": [ + { + "port": "8000", + "runtime_environment_secrets": null, + "runtime_environment_variables": null, + "start_command": "" + } + ], + "image_identifier": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-prod:latest", + "image_repository_type": "ECR" + } + ] + } + ], + "status": null, + "tags": { + "Application": "announcements", + "Environment": "prod" + }, + "tags_all": { + "Application": "announcements", + "Environment": "prod" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_apprunner_auto_scaling_configuration_version.app_scaling", + "aws_ecr_repository.app_repos", + "aws_iam_role.apprunner_role" + ] + }, + { + "index_key": "announcements-qa", + "status": "tainted", + "schema_version": 0, + "attributes": { + "arn": null, + "auto_scaling_configuration_arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/d1017023a0f74724b84fefcc16d2c679", + "encryption_configuration": [], + "health_check_configuration": null, + "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-qa-service/61ef24250b0d4b31978d767154c17a36", + "instance_configuration": [ + { + "cpu": "1024", + "instance_role_arn": "", + "memory": "2048" + } + ], + "network_configuration": null, + "observability_configuration": [], + "service_id": null, + "service_name": "announcements-qa-service", + "service_url": null, + "source_configuration": [ + { + "authentication_configuration": [ + { + "access_role_arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "connection_arn": "" + } + ], + "auto_deployments_enabled": true, + "code_repository": [], + "image_repository": [ + { + "image_configuration": [ + { + "port": "8000", + "runtime_environment_secrets": null, + "runtime_environment_variables": null, + "start_command": "" + } + ], + "image_identifier": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-qa:latest", + "image_repository_type": "ECR" + } + ] + } + ], + "status": null, + "tags": { + "Application": "announcements", + "Environment": "qa" + }, + "tags_all": { + "Application": "announcements", + "Environment": "qa" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_apprunner_auto_scaling_configuration_version.app_scaling", + "aws_ecr_repository.app_repos", + "aws_iam_role.apprunner_role" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_db_instance", + "name": "default", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "address": "cm-appfolio-db.c9o06ok6uz10.us-east-1.rds.amazonaws.com", + "allocated_storage": 20, + "allow_major_version_upgrade": null, + "apply_immediately": false, + "arn": "arn:aws:rds:us-east-1:654654512735:db:cm-appfolio-db", + "auto_minor_version_upgrade": true, + "availability_zone": "us-east-1b", + "backup_retention_period": 0, + "backup_target": "region", + "backup_window": "03:03-03:33", + "blue_green_update": [], + "ca_cert_identifier": "rds-ca-rsa2048-g1", + "character_set_name": "", + "copy_tags_to_snapshot": false, + "custom_iam_instance_profile": "", + "customer_owned_ip_enabled": false, + "db_name": "", + "db_subnet_group_name": "default-subnet-group", + "dedicated_log_volume": false, + "delete_automated_backups": true, + "deletion_protection": false, + "domain": "", + "domain_auth_secret_arn": "", + "domain_dns_ips": [], + "domain_fqdn": "", + "domain_iam_role_name": "", + "domain_ou": "", + "enabled_cloudwatch_logs_exports": [], + "endpoint": "cm-appfolio-db.c9o06ok6uz10.us-east-1.rds.amazonaws.com:3306", + "engine": "mysql", + "engine_lifecycle_support": "open-source-rds-extended-support", + "engine_version": "8.0", + "engine_version_actual": "8.0.35", + "final_snapshot_identifier": null, + "hosted_zone_id": "Z2R2ITUGPM61AM", + "iam_database_authentication_enabled": false, + "id": "db-E2YHLYEHUJQAXFRA4EADXL3WS4", + "identifier": "cm-appfolio-db", + "identifier_prefix": "", + "instance_class": "db.t3.micro", + "iops": 0, + "kms_key_id": "", + "latest_restorable_time": "", + "license_model": "general-public-license", + "listener_endpoint": [], + "maintenance_window": "mon:09:46-mon:10:16", + "manage_master_user_password": null, + "master_user_secret": [], + "master_user_secret_kms_key_id": null, + "max_allocated_storage": 0, + "monitoring_interval": 0, + "monitoring_role_arn": "", + "multi_az": false, + "nchar_character_set_name": "", + "network_type": "IPV4", + "option_group_name": "default:mysql-8-0", + "parameter_group_name": "default.mysql8.0", + "password": "my_secure_passcode", + "performance_insights_enabled": false, + "performance_insights_kms_key_id": "", + "performance_insights_retention_period": 0, + "port": 3306, + "publicly_accessible": true, + "replica_mode": "", + "replicas": [], + "replicate_source_db": "", + "resource_id": "db-E2YHLYEHUJQAXFRA4EADXL3WS4", + "restore_to_point_in_time": [], + "s3_import": [], + "skip_final_snapshot": true, + "snapshot_identifier": null, + "status": "available", + "storage_encrypted": false, + "storage_throughput": 0, + "storage_type": "gp2", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "timezone": "", + "upgrade_storage_config": null, + "username": "admin", + "vpc_security_group_ids": [ + "sg-03bee5a69571c738a" + ] + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "password" + } + ] + ], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoyNDAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NDgwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9", + "dependencies": [ + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_db_subnet_group", + "name": "default", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:rds:us-east-1:654654512735:subgrp:default-subnet-group", + "description": "Managed by Terraform", + "id": "default-subnet-group", + "name": "default-subnet-group", + "name_prefix": "", + "subnet_ids": [ + "subnet-096e455d5c7a3a422", + "subnet-0d2e6be1cde7f217b" + ], + "supported_network_types": [ + "IPV4" + ], + "tags": {}, + "tags_all": {}, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_ecr_repository", + "name": "app_repos", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "index_key": "announcements-dev", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:654654512735:repository/announcements-dev", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": true, + "id": "announcements-dev", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "announcements-dev", + "registry_id": "654654512735", + "repository_url": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-dev", + "tags": {}, + "tags_all": {}, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + }, + { + "index_key": "announcements-prod", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:654654512735:repository/announcements-prod", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": true, + "id": "announcements-prod", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "announcements-prod", + "registry_id": "654654512735", + "repository_url": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-prod", + "tags": {}, + "tags_all": {}, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + }, + { + "index_key": "announcements-qa", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:654654512735:repository/announcements-qa", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": true, + "id": "announcements-qa", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "announcements-qa", + "registry_id": "654654512735", + "repository_url": "654654512735.dkr.ecr.us-east-1.amazonaws.com/announcements-qa", + "tags": {}, + "tags_all": {}, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_policy", + "name": "ecr_access_policy", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy", + "attachment_count": 1, + "description": "", + "id": "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy", + "name": "apprunner-ecr-access-policy", + "name_prefix": "", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"ecr:GetDownloadUrlForLayer\",\"ecr:BatchGetImage\",\"ecr:BatchCheckLayerAvailability\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":\"ecr:GetAuthorizationToken\",\"Effect\":\"Allow\",\"Resource\":\"*\"}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAZQ3DTDZP43U566H74", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role", + "name": "apprunner_role", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::654654512735:role/apprunner-access-role", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"build.apprunner.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", + "create_date": "2024-08-16T16:25:28Z", + "description": "", + "force_detach_policies": false, + "id": "apprunner-access-role", + "inline_policy": [ + { + "name": "AWSRevokeOlderSessions", + "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"*\"],\"Condition\":{\"DateLessThan\":{\"aws:TokenIssueTime\":\"2024-08-16T17:12:14.157Z\"}},\"Effect\":\"Deny\",\"Resource\":[\"*\"]}]}" + } + ], + "managed_policy_arns": [ + "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy" + ], + "max_session_duration": 3600, + "name": "apprunner-access-role", + "name_prefix": "", + "path": "/", + "permissions_boundary": "", + "tags": {}, + "tags_all": {}, + "unique_id": "AROAZQ3DTDZPRYJPVAD2J" + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "apprunner_ecr_policy_attach", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "apprunner-access-role-20240816162528323500000001", + "policy_arn": "arn:aws:iam::654654512735:policy/apprunner-ecr-access-policy", + "role": "apprunner-access-role" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_policy.ecr_access_policy", + "aws_iam_role.apprunner_role" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_internet_gateway", + "name": "main", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:internet-gateway/igw-0dcdfce5a928d0b9d", + "id": "igw-0dcdfce5a928d0b9d", + "owner_id": "654654512735", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "public", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:route-table/rtb-07c1aff52017884c9", + "id": "rtb-07c1aff52017884c9", + "owner_id": "654654512735", + "propagating_vgws": [], + "route": [ + { + "carrier_gateway_id": "", + "cidr_block": "0.0.0.0/0", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0dcdfce5a928d0b9d", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "subnet_association", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-00f461b65155427d3", + "route_table_id": "rtb-07c1aff52017884c9", + "subnet_id": "subnet-0d2e6be1cde7f217b", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.main", + "aws_route_table.public", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "rds_sg", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:security-group/sg-03bee5a69571c738a", + "description": "Managed by Terraform", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-03bee5a69571c738a", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 3306, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 3306 + } + ], + "name": "terraform-20240816162539407200000002", + "name_prefix": "terraform-", + "owner_id": "654654512735", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "alternative", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:subnet/subnet-096e455d5c7a3a422", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-1b", + "availability_zone_id": "use1-az2", + "cidr_block": "10.0.2.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-096e455d5c7a3a422", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": true, + "outpost_arn": "", + "owner_id": "654654512735", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "main", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:subnet/subnet-0d2e6be1cde7f217b", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-1c", + "availability_zone_id": "use1-az4", + "cidr_block": "10.0.1.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0d2e6be1cde7f217b", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": true, + "outpost_arn": "", + "owner_id": "654654512735", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0f0173b2df9535dd6" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc", + "name": "main", + "provider": "provider[\"registry.opentofu.org/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:654654512735:vpc/vpc-0f0173b2df9535dd6", + "assign_generated_ipv6_cidr_block": false, + "cidr_block": "10.0.0.0/16", + "default_network_acl_id": "acl-044622538dd3a452b", + "default_route_table_id": "rtb-057909b952cd7af9e", + "default_security_group_id": "sg-099926fded9028a44", + "dhcp_options_id": "dopt-0448c905aa54596ac", + "enable_dns_hostnames": true, + "enable_dns_support": true, + "enable_network_address_usage_metrics": false, + "id": "vpc-0f0173b2df9535dd6", + "instance_tenancy": "default", + "ipv4_ipam_pool_id": null, + "ipv4_netmask_length": null, + "ipv6_association_id": "", + "ipv6_cidr_block": "", + "ipv6_cidr_block_network_border_group": "", + "ipv6_ipam_pool_id": "", + "ipv6_netmask_length": 0, + "main_route_table_id": "rtb-057909b952cd7af9e", + "owner_id": "654654512735", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + }, + { + "mode": "managed", + "type": "null_resource", + "name": "create_databases", + "provider": "provider[\"registry.opentofu.org/hashicorp/null\"]", + "instances": [ + { + "index_key": "announcements-dev", + "status": "tainted", + "schema_version": 0, + "attributes": { + "id": "1792972947876424361", + "triggers": null + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_db_instance.default", + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + }, + { + "index_key": "announcements-prod", + "status": "tainted", + "schema_version": 0, + "attributes": { + "id": "2850332754649889448", + "triggers": null + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_db_instance.default", + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + }, + { + "index_key": "announcements-qa", + "status": "tainted", + "schema_version": 0, + "attributes": { + "id": "4823001216123885247", + "triggers": null + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_db_instance.default", + "aws_db_subnet_group.default", + "aws_security_group.rds_sg", + "aws_subnet.alternative", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + } + ], + "check_results": null +}