diff --git a/infrastructure/.terraform.lock.hcl b/infrastructure/.terraform.lock.hcl index 362c410..749b086 100644 --- a/infrastructure/.terraform.lock.hcl +++ b/infrastructure/.terraform.lock.hcl @@ -6,6 +6,7 @@ provider "registry.opentofu.org/hashicorp/aws" { constraints = "5.62.0" hashes = [ "h1:7wg7/a/7B5UKRNpgl4f6xEK4O7A425ZC7xv5ynAOdno=", + "h1:DzXMlmL2hRPfACAbN1PUhnLDGY9Kl0vbrt05qSfGsxA=", "zh:2cb519ce7f3cbcb88b2e93dd3b3424ad85a347fc0e7429661945da5df8a20fda", "zh:2fc7ed911cceaa1652d1f4090eaa91e8463aba86873910bccf16601260379886", "zh:395b32d157adeb92571a0efd230c73bbee01744782a50356fb16e8946bd63ffb", @@ -23,6 +24,7 @@ provider "registry.opentofu.org/hashicorp/null" { version = "3.2.2" hashes = [ "h1:P8+KlqxeTE3fNqzngzTxfwXFJaGl2Csw7lYJtFff508=", + "h1:xN1tSeF/rUBfaddk/AVqk4i65z/MMM9uVZWd2cWCCH0=", "zh:00e5877d19fb1c1d8c4b3536334a46a5c86f57146fd115c7b7b4b5d2bf2de86d", "zh:1755c2999e73e4d73f9de670c145c9a0dc5a373802799dff06a0e9c161354163", "zh:2b29d706353bc9c4edda6a2946af3322abe94372ffb421d81fa176f1e57e33be", diff --git a/infrastructure/04_rds.tf b/infrastructure/04_rds.tf index b395f9e..d34ca99 100644 --- a/infrastructure/04_rds.tf +++ b/infrastructure/04_rds.tf @@ -15,12 +15,14 @@ resource "aws_subnet" "main" { vpc_id = aws_vpc.main.id cidr_block = "10.0.1.0/24" availability_zone = "us-east-1c" + map_public_ip_on_launch = true } resource "aws_subnet" "alternative" { vpc_id = aws_vpc.main.id cidr_block = "10.0.2.0/24" availability_zone = "us-east-1b" + map_public_ip_on_launch = true } resource "aws_db_subnet_group" "default" { @@ -68,14 +70,14 @@ resource "aws_db_instance" "default" { identifier = "shared-rds-instance" allocated_storage = 20 engine = "mysql" + engine_version = "8.0" instance_class = "db.t3.micro" username = "admin" password = var.db_password - parameter_group_name = "default.mysql8.0" skip_final_snapshot = true publicly_accessible = true - vpc_security_group_ids = [aws_security_group.rds_sg.id] + vpc_security_group_ids = ["${aws_security_group.rds_sg.id}"] db_subnet_group_name = aws_db_subnet_group.default.name } @@ -86,7 +88,7 @@ resource "null_resource" "create_databases" { provisioner "local-exec" { command = <<EOT - mysql -h ${aws_db_instance.default.address} -P 3306 -uadmin -p${var.db_password} -e "CREATE DATABASE ${each.value.app}-${each.value.env};" + mysql -h ${aws_db_instance.default.address} -P 3306 -uadmin -p${var.db_password} -e "CREATE DATABASE ${each.value.app}_${each.value.env};" EOT } diff --git a/infrastructure/terraform.tfstate b/infrastructure/terraform.tfstate index ecc94e8..da722dd 100644 --- a/infrastructure/terraform.tfstate +++ b/infrastructure/terraform.tfstate @@ -1,47 +1 @@ -{ - "version": 4, - "terraform_version": "1.7.2", - "serial": 39, - "lineage": "54543b65-0785-73d9-c782-458033890453", - "outputs": {}, - "resources": [ - { - "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": null, - "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=" - } - ] - } - ], - "check_results": null -} +{"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} diff --git a/infrastructure/terraform.tfstate.backup b/infrastructure/terraform.tfstate.backup index fc01a8d..821714a 100644 --- a/infrastructure/terraform.tfstate.backup +++ b/infrastructure/terraform.tfstate.backup @@ -1,927 +1 @@ -{ - "version": 4, - "terraform_version": "1.7.2", - "serial": 35, - "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/5816bdbda35d4bf49cfd860f48f3c73d", - "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/5816bdbda35d4bf49cfd860f48f3c73d", - "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", - "schema_version": 0, - "attributes": { - "arn": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-dev-service/338c26e8f949438f99f5d4e4a3e616bf", - "auto_scaling_configuration_arn": "arn:aws:apprunner:us-east-1:654654512735:autoscalingconfiguration/app-scaling-config/2/5816bdbda35d4bf49cfd860f48f3c73d", - "encryption_configuration": [], - "health_check_configuration": [ - { - "healthy_threshold": 1, - "interval": 5, - "path": "/", - "protocol": "TCP", - "timeout": 2, - "unhealthy_threshold": 5 - } - ], - "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-dev-service/338c26e8f949438f99f5d4e4a3e616bf", - "instance_configuration": [ - { - "cpu": "1024", - "instance_role_arn": "", - "memory": "2048" - } - ], - "network_configuration": [ - { - "egress_configuration": [ - { - "egress_type": "DEFAULT", - "vpc_connector_arn": "" - } - ], - "ingress_configuration": [ - { - "is_publicly_accessible": true - } - ], - "ip_address_type": "IPV4" - } - ], - "observability_configuration": [], - "service_id": "338c26e8f949438f99f5d4e4a3e616bf", - "service_name": "announcements-dev-service", - "service_url": "p6pcdcptzr.us-east-1.awsapprunner.com", - "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": "RUNNING", - "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/5816bdbda35d4bf49cfd860f48f3c73d", - "encryption_configuration": [], - "health_check_configuration": null, - "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-prod-service/990cf043bf8641a6ae2adb439f8cb42c", - "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/5816bdbda35d4bf49cfd860f48f3c73d", - "encryption_configuration": [], - "health_check_configuration": null, - "id": "arn:aws:apprunner:us-east-1:654654512735:service/announcements-qa-service/8f4c5380141b43349a6d94dc9428b334", - "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-1b", - "backup_retention_period": 0, - "backup_target": "region", - "backup_window": "09:38-10:08", - "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.35", - "engine_version_actual": "8.0.35", - "final_snapshot_identifier": null, - "hosted_zone_id": "Z2R2ITUGPM61AM", - "iam_database_authentication_enabled": false, - "id": "db-JAULLD6H4JXRJSIFO5CN7RSNEA", - "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": "wed:07:56-wed:08:26", - "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-JAULLD6H4JXRJSIFO5CN7RSNEA", - "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-0ae00fb162a62c053" - ] - }, - "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-023305c9b5e0696a5", - "subnet-0afed6f2872e403a7" - ], - "supported_network_types": [ - "IPV4" - ], - "tags": {}, - "tags_all": {}, - "vpc_id": "vpc-03cd3aa41620b7946" - }, - "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": null, - "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": null, - "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": null, - "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": "ANPAZQ3DTDZPXJG3LSCLY", - "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-15T19:56:52Z", - "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": "AROAZQ3DTDZP4Z2Q7QIY5" - }, - "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-20240815195653206400000001", - "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-060cbbe570a174dd3", - "id": "igw-060cbbe570a174dd3", - "owner_id": "654654512735", - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-03cd3aa41620b7946" - }, - "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-0030d19a529f5072d", - "id": "rtb-0030d19a529f5072d", - "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-060cbbe570a174dd3", - "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-03cd3aa41620b7946" - }, - "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-0f171eda3a0afc2f5", - "route_table_id": "rtb-0030d19a529f5072d", - "subnet_id": "subnet-023305c9b5e0696a5", - "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-0ae00fb162a62c053", - "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-0ae00fb162a62c053", - "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-20240815195704149700000002", - "name_prefix": "terraform-", - "owner_id": "654654512735", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-03cd3aa41620b7946" - }, - "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-0afed6f2872e403a7", - "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-0afed6f2872e403a7", - "ipv6_cidr_block": "", - "ipv6_cidr_block_association_id": "", - "ipv6_native": false, - "map_customer_owned_ip_on_launch": false, - "map_public_ip_on_launch": false, - "outpost_arn": "", - "owner_id": "654654512735", - "private_dns_hostname_type_on_launch": "ip-name", - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-03cd3aa41620b7946" - }, - "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-023305c9b5e0696a5", - "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-023305c9b5e0696a5", - "ipv6_cidr_block": "", - "ipv6_cidr_block_association_id": "", - "ipv6_native": false, - "map_customer_owned_ip_on_launch": false, - "map_public_ip_on_launch": false, - "outpost_arn": "", - "owner_id": "654654512735", - "private_dns_hostname_type_on_launch": "ip-name", - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-03cd3aa41620b7946" - }, - "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-03cd3aa41620b7946", - "assign_generated_ipv6_cidr_block": false, - "cidr_block": "10.0.0.0/16", - "default_network_acl_id": "acl-0bbdfe7a79282c428", - "default_route_table_id": "rtb-0d5d6a763327545b5", - "default_security_group_id": "sg-0c4eaeabf094ba97e", - "dhcp_options_id": "dopt-0448c905aa54596ac", - "enable_dns_hostnames": true, - "enable_dns_support": true, - "enable_network_address_usage_metrics": false, - "id": "vpc-03cd3aa41620b7946", - "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-0d5d6a763327545b5", - "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": "4585010339509141483", - "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": "3957890368651731098", - "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": "8919999640451138009", - "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.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}