From 83f39b3e518d8b3a69633612a5a76436a15934d5 Mon Sep 17 00:00:00 2001 From: Eschxr Date: Mon, 4 Sep 2023 19:26:22 +1000 Subject: [PATCH] reset infrastructure --- .github/workflows/update.yml | 20 +- credentials | 3 + terraform.tfstate | 1517 ++++++++++++++++++++++++++++++++++ 3 files changed, 1530 insertions(+), 10 deletions(-) create mode 100644 credentials create mode 100644 terraform.tfstate diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 36baf71..105f5ed 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -43,16 +43,16 @@ jobs: - name: Apply Terraform changes run: | terraform init - # terraform destroy -auto-approve && terraform apply -auto-approve - terraform apply \ - -auto-approve \ - -replace=aws_ecr_repository.studyoracle_server \ - -replace=aws_ecr_repository.studyoracle_worker \ - -replace=aws_ecs_cluster.studyoracle \ - -replace=aws_ecs_service.studyoracle \ - -replace=aws_ecs_task_definition.studyoracle_worker \ - -replace=aws_ecs_task_definition.studyoracle_server \ - -replace=aws_route53_record.studyoracle + terraform destroy -auto-approve && terraform apply -auto-approve + # terraform apply \ + # -auto-approve \ + # -replace=aws_ecr_repository.studyoracle_server \ + # -replace=aws_ecr_repository.studyoracle_worker \ + # -replace=aws_ecs_cluster.studyoracle \ + # -replace=aws_ecs_service.studyoracle \ + # -replace=aws_ecs_task_definition.studyoracle_worker \ + # -replace=aws_ecs_task_definition.studyoracle_server \ + # -replace=aws_route53_record.studyoracle continue-on-error: true - name: Apply terraform once more (sometimes AutoScaling fails) diff --git a/credentials b/credentials new file mode 100644 index 0000000..adca5c9 --- /dev/null +++ b/credentials @@ -0,0 +1,3 @@ +[default] +aws_access_key_id=AKIAXTY2H6XNF4BYJ3EF +aws_secret_access_key=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 \ No newline at end of file diff --git a/terraform.tfstate b/terraform.tfstate new file mode 100644 index 0000000..dc00b28 --- /dev/null +++ b/terraform.tfstate @@ -0,0 +1,1517 @@ +{ + "version": 4, + "terraform_version": "1.4.5", + "serial": 956, + "lineage": "9adbedf4-b27e-251b-744a-7cf809eccc37", + "outputs": { + "ecr_repository_url_server": { + "value": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_server", + "type": "string" + }, + "ecr_repository_url_worker": { + "value": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_worker", + "type": "string" + } + }, + "resources": [ + { + "mode": "data", + "type": "aws_acm_certificate", + "name": "issued", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:acm:us-east-1:523504186842:certificate/95c3e5dc-42d3-4de9-8ab2-f9f0446d8dfa", + "certificate": "-----BEGIN CERTIFICATE-----\nMIIFyTCCBLGgAwIBAgIQBOB0z7uzVSpf7tHSqxEwAzANBgkqhkiG9w0BAQsFADA8\nMQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRwwGgYDVQQDExNBbWF6b24g\nUlNBIDIwNDggTTAxMB4XDTIzMDcyNzAwMDAwMFoXDTI0MDgyNTIzNTk1OVowGjEY\nMBYGA1UEAxMPc3R1ZHlvcmFjbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A\nMIIBCgKCAQEAr/rUaK9Jnnny0+egql9VOdsxDXVrZWgBCrnT2Saa2SD4ggHy/IrM\nN3Bo1WiRZa45ELja517UX3Ir9jZvmwiKMddn9hHcytXwp3za2hlCOfAac3bPPpPA\nnfK0Gedzul+pKSWlOrnIssybl5lgxX0pldQk8lfUkRpe+N+xxFYMYToGFEX0w8pC\nzHIinyQtxRNZKlBhTZ1+nY566N6o4I4siOfU+yNOKmDTgakA8stAvk9se2ZEl1eJ\nws7UWbZ1xec6dWDkDkD729EizCG3t3kVWAaXhWb6KO6jmCic/1K5G4M3snEJzOgq\nRG4OUXpsVYkwfYIjw69wY3+2AY4j/DSgKwIDAQABo4IC5zCCAuMwHwYDVR0jBBgw\nFoAUgbgOY4q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+UX2wmDPE1kCK4DMNEffud6QZW0C\nzyyRpqbn3oUYSXxmTqM6bam17jQuug0DuDPfR+uxa40l2ZvOgdFFRjKWcIfeAg5J\nQ4W2bHO7ZOphQazJ1FTfhy/HIrImzJ9ZVGif/L4qL8RVHHVAYBeFAlU5i38FAgMB\nAAGjgfAwge0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0O\nBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMB8GA1UdIwQYMBaAFL9ft9HO3R+G9FtV\nrNzXEMIOqYjnME8GCCsGAQUFBwEBBEMwQTAcBggrBgEFBQcwAYYQaHR0cDovL28u\nc3MyLnVzLzAhBggrBgEFBQcwAoYVaHR0cDovL3guc3MyLnVzL3guY2VyMCYGA1Ud\nHwQfMB0wG6AZoBeGFWh0dHA6Ly9zLnNzMi51cy9yLmNybDARBgNVHSAECjAIMAYG\nBFUdIAAwDQYJKoZIhvcNAQELBQADggEBACMd44pXyn3pF3lM8R5V/cxTbj5HD9/G\nVfKyBDbtgB9TxF00KGu+x1X8Z+rLP3+QsjPNG1gQggL4+C/1E2DUBc7xgQjB3ad1\nl08YuW3e95ORCLp+QCztweq7dp4zBncdDQh/U90bZKuCJ/Fp1U1ervShw3WnWEQt\n8jxwmKy6abaVd38PMV4s/KCHOkdp8Hlf9BRUpJVeEXgSYCfOn8J3/yNTd126/+pZ\n59vPr5KW7ySaNRB6nJHGDn2Z9j8Z3/VyVOEVqQdZe4O/Ui5GjLIAZHYcSNPYeehu\nVsyuLAOQ1xk4meTKCRlb/weWsKh/NEnfVqn3sF/tM+2MR7cwA130A4w=\n-----END CERTIFICATE-----\n", + "domain": "studyoracle.com", + "id": "arn:aws:acm:us-east-1:523504186842:certificate/95c3e5dc-42d3-4de9-8ab2-f9f0446d8dfa", + "key_types": null, + "most_recent": false, + "status": "ISSUED", + "statuses": [ + "ISSUED" + ], + "tags": { + "name": "studyoracle" + }, + "types": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "523504186842", + "arn": "arn:aws:iam::523504186842:user/admin", + "id": "523504186842", + "user_id": "AIDAXTY2H6XNHW2VYPFB4" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_ecr_authorization_token", + "name": "ecr_token", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "authorization_token": "QVdTOmV5SndZWGxzYjJGa0lqb2lSbGhoY2tnMlJ6STBlSHB0TURkcVZFVnlUMnhEZUhrM2RIZDRUR2htVTI5a2IyOXJXbEZZT0dONk5FSjVTbWhLUzBabmJYb3diMk4wUTAxNllXSkRTVVl5TkdSck9FMVNhVmh0V1hWU2FXRkZTa3RRUVdkQmFGRnFZM2h2TXpSVWNUTnFheXRGTmxaa04yTllkbUpDYURKTmVWTTJRWEZ4VG5saGVVVkZUaXRKY1V4TVJqTlhXRlY0VGtFd01FVnJSekp5Wm14bFkza3daMVZpVUcxMFNHUjNaa2hEYzJKWVIwSnVlbTkzT1dSV1F5OUlSVzFNZWpsUmVIcFFZVVYyWlVaVmVsUXpka3haVG5KSE5qRnNMMmcxWkVFMmJYTk5hWEpCVHpsNE1EVjBOMVIwTDNGYVVIaFlTMmh1VVVSbWJtNVVZVms1TkhkSGMxQTJVREl5TW1WVlMzaENTaTlqZVd4VlRITnJjSEk1WlcxNk5IRnpVa2d3UzBGbEszUmhRMEZvWVZWek9YTkVObGRSTVd0cE1VbFhiMEV6UVVSNWFrSnVTbEV2Um1ScVYxWnRNbXRyVjBzd1ozaG9jQzlwYUVoR2JqUllia0pFWmtzclZXWk5aa0ZKY201TlYxaHdiak15UVd4VVFtRlpWVFF5V1V4MVdteHFORTA1TVVKRGRrMVZSMDVOY2xKcmFtUTNNVUkxZUZJdmVVaHpWRFpF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YUGU1VUZjZTlScTgvMTR3QUFBSDR3ZkFZSktvWklodmNOQVFjR29HOHdiUUlCQURCb0Jna3Foa2lHOXcwQkJ3RXdIZ1lKWUlaSUFXVURCQUV1TUJFRURENzU4bWlNSi9FY3NmZ2xIUUlCRUlBN2NEenJmcTlOejdVWFhtMEZFaGptcGkwVy9UZVB3Y2RnM1dDRjhBazZ6OG81WEV0UkZoamZ4K2s2T0l6WXh2TFB5WjNVZUlpYTRaUXN5N1U9IiwidmVyc2lvbiI6IjIiLCJ0eXBlIjoiREFUQV9LRVkiLCJleHBpcmF0aW9uIjoxNjkzODQwNDgxfQ==", + "proxy_endpoint": "https://523504186842.dkr.ecr.us-east-1.amazonaws.com", + "registry_id": null, + "user_name": "AWS" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_iam_role", + "name": "lab", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::523504186842:role/LabRole", + "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"ecr.amazonaws.com\",\"ecs-tasks.amazonaws.com\"],\"AWS\":[\"arn:aws:iam::523504186842:root\",\"arn:aws:iam::523504186842:user/admin\"]},\"Action\":\"sts:AssumeRole\",\"Condition\":{}}]}", + "create_date": "2023-07-03T14:13:24Z", + "description": "A role that adds all access apart from making Users and Groups", + "id": "LabRole", + "max_session_duration": 3600, + "name": "LabRole", + "path": "/", + "permissions_boundary": "", + "role_last_used": [ + { + "last_used_date": "2023-09-04T02:04:14Z", + "region": "us-east-1" + } + ], + "tags": { + "Type": "LabRole" + }, + "unique_id": "AROAXTY2H6XNBHZY3XRBU" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_region", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "description": "US East (N. Virginia)", + "endpoint": "ec2.us-east-1.amazonaws.com", + "id": "us-east-1", + "name": "us-east-1" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_route53_zone", + "name": "studyoracle", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:route53:::hostedzone/Z02050511NCA0L61F2WBR", + "caller_reference": "4f829c2a-a755-4ae4-9d53-0a795d5d3049", + "comment": "THis is the hosted zone for studyoracle.com", + "id": "Z02050511NCA0L61F2WBR", + "linked_service_description": null, + "linked_service_principal": null, + "name": "studyoracle.com", + "name_servers": [ + "ns-136.awsdns-17.com", + "ns-1900.awsdns-45.co.uk", + "ns-565.awsdns-06.net", + "ns-1244.awsdns-27.org" + ], + "primary_name_server": "ns-136.awsdns-17.com", + "private_zone": false, + "resource_record_set_count": 9, + "tags": { + "Name": "StudyOracle" + }, + "vpc_id": null, + "zone_id": "Z02050511NCA0L61F2WBR" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_subnets", + "name": "private", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "filter": [ + { + "name": "vpc-id", + "values": [ + "vpc-05531e870ea717241" + ] + } + ], + "id": "us-east-1", + "ids": [ + "subnet-0730c48ab1d03b70b", + "subnet-0993e50cef7f473ab" + ], + "tags": null, + "timeouts": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_vpc", + "name": "default", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:523504186842:vpc/vpc-05531e870ea717241", + "cidr_block": "172.31.0.0/16", + "cidr_block_associations": [ + { + "association_id": "vpc-cidr-assoc-0c7bb1a8b55527f4f", + "cidr_block": "172.31.0.0/16", + "state": "associated" + } + ], + "default": true, + "dhcp_options_id": "dopt-04b9cf04c664c26e7", + "enable_dns_hostnames": true, + "enable_dns_support": true, + "enable_network_address_usage_metrics": false, + "filter": null, + "id": "vpc-05531e870ea717241", + "instance_tenancy": "default", + "ipv6_association_id": "", + "ipv6_cidr_block": "", + "main_route_table_id": "rtb-0da15b8ef4414baa3", + "owner_id": "523504186842", + "state": null, + "tags": {}, + "timeouts": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "managed", + "type": "aws_appautoscaling_policy", + "name": "studyoracle_server-cpu", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "alarm_arns": [ + "arn:aws:cloudwatch:us-east-1:523504186842:alarm:TargetTracking-service/studyoracle/studyoracle-AlarmHigh-1fa0953a-5cc3-4baf-abff-46d32db4a0d4", + "arn:aws:cloudwatch:us-east-1:523504186842:alarm:TargetTracking-service/studyoracle/studyoracle-AlarmLow-e6107fa1-9207-46b1-afad-94e1b8bd551d" + ], + "arn": "arn:aws:autoscaling:us-east-1:523504186842:scalingPolicy:8cb86b52-250d-437f-94f1-10ba707007ca:resource/ecs/service/studyoracle/studyoracle:policyName/studyoracle_server-cpu", + "id": "studyoracle_server-cpu", + "name": "studyoracle_server-cpu", + "policy_type": "TargetTrackingScaling", + "resource_id": "service/studyoracle/studyoracle", + "scalable_dimension": "ecs:service:DesiredCount", + "service_namespace": "ecs", + "step_scaling_policy_configuration": [], + "target_tracking_scaling_policy_configuration": [ + { + "customized_metric_specification": [], + "disable_scale_in": false, + "predefined_metric_specification": [ + { + "predefined_metric_type": "ECSServiceAverageCPUUtilization", + "resource_label": "" + } + ], + "scale_in_cooldown": 0, + "scale_out_cooldown": 0, + "target_value": 50 + } + ] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_appautoscaling_target.studyoracle_server" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_appautoscaling_target", + "name": "studyoracle_server", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:application-autoscaling:us-east-1:523504186842:scalable-target/0ec58cb86b52250d437f94f110ba707007ca", + "id": "service/studyoracle/studyoracle", + "max_capacity": 1000, + "min_capacity": 1, + "resource_id": "service/studyoracle/studyoracle", + "role_arn": "arn:aws:iam::523504186842:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService", + "scalable_dimension": "ecs:service:DesiredCount", + "service_namespace": "ecs", + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_db_instance", + "name": "database", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "address": "terraform-20230725062540726200000001.c6rppyqaulcn.us-east-1.rds.amazonaws.com", + "allocated_storage": 20, + "allow_major_version_upgrade": null, + "apply_immediately": false, + "arn": "arn:aws:rds:us-east-1:523504186842:db:terraform-20230725062540726200000001", + "auto_minor_version_upgrade": true, + "availability_zone": "us-east-1b", + "backup_retention_period": 0, + "backup_window": "03:52-04:22", + "blue_green_update": [], + "ca_cert_identifier": "rds-ca-2019", + "character_set_name": "", + "copy_tags_to_snapshot": false, + "custom_iam_instance_profile": "", + "customer_owned_ip_enabled": false, + "db_name": "studyoracle", + "db_subnet_group_name": "default", + "delete_automated_backups": true, + "deletion_protection": false, + "domain": "", + "domain_iam_role_name": "", + "enabled_cloudwatch_logs_exports": [], + "endpoint": "terraform-20230725062540726200000001.c6rppyqaulcn.us-east-1.rds.amazonaws.com:5432", + "engine": "postgres", + "engine_version": "14", + "engine_version_actual": "14.7", + "final_snapshot_identifier": null, + "hosted_zone_id": "Z2R2ITUGPM61AM", + "iam_database_authentication_enabled": false, + "id": "terraform-20230725062540726200000001", + "identifier": "terraform-20230725062540726200000001", + "identifier_prefix": "terraform-", + "instance_class": "db.t4g.micro", + "iops": 0, + "kms_key_id": "", + "latest_restorable_time": "", + "license_model": "postgresql-license", + "listener_endpoint": [], + "maintenance_window": "sun:09:55-sun:10:25", + "manage_master_user_password": null, + "master_user_secret": [], + "master_user_secret_kms_key_id": null, + "max_allocated_storage": 1000, + "monitoring_interval": 0, + "monitoring_role_arn": "", + "multi_az": false, + "name": "studyoracle", + "nchar_character_set_name": "", + "network_type": "IPV4", + "option_group_name": "default:postgres-14", + "parameter_group_name": "default.postgres14", + "password": "VerySecurePassword123XYZ", + "performance_insights_enabled": false, + "performance_insights_kms_key_id": "", + "performance_insights_retention_period": 0, + "port": 5432, + "publicly_accessible": true, + "replica_mode": "", + "replicas": [], + "replicate_source_db": "", + "resource_id": "db-62GYVS2RQYYVYHYWNSUMJO2LOA", + "restore_to_point_in_time": [], + "s3_import": [], + "security_group_names": [], + "skip_final_snapshot": true, + "snapshot_identifier": null, + "status": "available", + "storage_encrypted": false, + "storage_throughput": 0, + "storage_type": "gp2", + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null, + "timezone": "", + "username": "administrator", + "vpc_security_group_ids": [ + "sg-09271a679eca107f2" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoyNDAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NDgwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_security_group.database" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_ecr_repository", + "name": "studyoracle_server", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:523504186842:repository/studyoracle_server", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": null, + "id": "studyoracle_server", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "studyoracle_server", + "registry_id": "523504186842", + "repository_url": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_server", + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + } + ] + }, + { + "mode": "managed", + "type": "aws_ecr_repository", + "name": "studyoracle_worker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecr:us-east-1:523504186842:repository/studyoracle_worker", + "encryption_configuration": [ + { + "encryption_type": "AES256", + "kms_key": "" + } + ], + "force_delete": null, + "id": "studyoracle_worker", + "image_scanning_configuration": [ + { + "scan_on_push": false + } + ], + "image_tag_mutability": "MUTABLE", + "name": "studyoracle_worker", + "registry_id": "523504186842", + "repository_url": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_worker", + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0=" + } + ] + }, + { + "mode": "managed", + "type": "aws_ecs_cluster", + "name": "studyoracle", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ecs:us-east-1:523504186842:cluster/studyoracle", + "capacity_providers": [], + "configuration": [], + "default_capacity_provider_strategy": [], + "id": "arn:aws:ecs:us-east-1:523504186842:cluster/studyoracle", + "name": "studyoracle", + "service_connect_defaults": [], + "setting": [ + { + "name": "containerInsights", + "value": "disabled" + } + ], + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_ecs_service", + "name": "studyoracle", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "alarms": [], + "capacity_provider_strategy": [], + "cluster": "arn:aws:ecs:us-east-1:523504186842:cluster/studyoracle", + "deployment_circuit_breaker": [ + { + "enable": false, + "rollback": false + } + ], + "deployment_controller": [ + { + "type": "ECS" + } + ], + "deployment_maximum_percent": 200, + "deployment_minimum_healthy_percent": 100, + "desired_count": 1, + "enable_ecs_managed_tags": false, + "enable_execute_command": false, + "force_new_deployment": null, + "health_check_grace_period_seconds": 0, + "iam_role": "/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS", + "id": "arn:aws:ecs:us-east-1:523504186842:service/studyoracle/studyoracle", + "launch_type": "FARGATE", + "load_balancer": [ + { + "container_name": "studyoracle_server", + "container_port": 8080, + "elb_name": "", + "target_group_arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:targetgroup/studyoracleserver/8bc24e13c6a9e083" + } + ], + "name": "studyoracle", + "network_configuration": [ + { + "assign_public_ip": true, + "security_groups": [ + "sg-026dfa396a153b67b" + ], + "subnets": [ + "subnet-0730c48ab1d03b70b", + "subnet-0993e50cef7f473ab" + ] + } + ], + "ordered_placement_strategy": [], + "placement_constraints": [], + "platform_version": "LATEST", + "propagate_tags": "NONE", + "scheduling_strategy": "REPLICA", + "service_connect_configuration": [], + "service_registries": [], + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "task_definition": "arn:aws:ecs:us-east-1:523504186842:task-definition/studyoracle:59", + "timeouts": null, + "triggers": {}, + "wait_for_steady_state": false + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_db_instance.database", + "aws_ecr_repository.studyoracle_server", + "aws_ecr_repository.studyoracle_worker", + "aws_ecs_cluster.studyoracle", + "aws_ecs_task_definition.studyoracle", + "aws_elasticache_cluster.studyoracle_redis", + "aws_lb_target_group.studyoracle_server", + "aws_security_group.studyoracle", + "data.aws_iam_role.lab", + "data.aws_subnets.private" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_ecs_task_definition", + "name": "studyoracle", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ecs:us-east-1:523504186842:task-definition/studyoracle:59", + "arn_without_revision": "arn:aws:ecs:us-east-1:523504186842:task-definition/studyoracle", + "container_definitions": "[{\"cpu\":256,\"environment\":[{\"name\":\"CELERY_BROKER_URL\",\"value\":\"redis://studyoracle-redis.wly9og.0001.use1.cache.amazonaws.com:6379\"},{\"name\":\"CELERY_RESULT_BACKEND\",\"value\":\"db+postgresql://administrator:VerySecurePassword123XYZ@terraform-20230725062540726200000001.c6rppyqaulcn.us-east-1.rds.amazonaws.com:5432/studyoracle\"},{\"name\":\"OPENAI_API_KEY\",\"value\":\"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\"},{\"name\":\"SQLALCHEMY_DATABASE_URI\",\"value\":\"postgresql://administrator:VerySecurePassword123XYZ@terraform-20230725062540726200000001.c6rppyqaulcn.us-east-1.rds.amazonaws.com:5432/studyoracle\"}],\"essential\":true,\"image\":\"523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_server\",\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-create-group\":\"true\",\"awslogs-group\":\"/studyoracle/server\",\"awslogs-region\":\"us-east-1\",\"awslogs-stream-prefix\":\"ecs\"}},\"memory\":1024,\"mountPoints\":[],\"name\":\"studyoracle_server\",\"portMappings\":[{\"containerPort\":8080,\"hostPort\":8080,\"protocol\":\"tcp\"}],\"volumesFrom\":[]},{\"cpu\":256,\"environment\":[{\"name\":\"CELERY_BROKER_URL\",\"value\":\"redis://studyoracle-redis.wly9og.0001.use1.cache.amazonaws.com:6379\"},{\"name\":\"CELERY_RESULT_BACKEND\",\"value\":\"db+postgresql://administrator:VerySecurePassword123XYZ@terraform-20230725062540726200000001.c6rppyqaulcn.us-east-1.rds.amazonaws.com:5432/studyoracle\"},{\"name\":\"C_FORCE_ROOT\",\"value\":\"true\"},{\"name\":\"OPENAI_API_KEY\",\"value\":\"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\"},{\"name\":\"SQLALCHEMY_DATABASE_URI\",\"value\":\"postgresql://administrator:VerySecurePassword123XYZ@terraform-20230725062540726200000001.c6rppyqaulcn.us-east-1.rds.amazonaws.com:5432/studyoracle\"}],\"essential\":true,\"image\":\"523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_worker\",\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-create-group\":\"true\",\"awslogs-group\":\"/studyoracle/worker\",\"awslogs-region\":\"us-east-1\",\"awslogs-stream-prefix\":\"ecs\"}},\"memory\":1024,\"mountPoints\":[],\"name\":\"studyoracle_worker\",\"portMappings\":[],\"volumesFrom\":[]}]", + "cpu": "512", + "ephemeral_storage": [], + "execution_role_arn": "arn:aws:iam::523504186842:role/LabRole", + "family": "studyoracle", + "id": "studyoracle", + "inference_accelerator": [], + "ipc_mode": "", + "memory": "2048", + "network_mode": "awsvpc", + "pid_mode": "", + "placement_constraints": [], + "proxy_configuration": [], + "requires_compatibilities": [ + "FARGATE" + ], + "revision": 59, + "runtime_platform": [], + "skip_destroy": false, + "tags": null, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "task_role_arn": "", + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "aws_db_instance.database", + "aws_ecr_repository.studyoracle_server", + "aws_ecr_repository.studyoracle_worker", + "aws_elasticache_cluster.studyoracle_redis", + "data.aws_iam_role.lab" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_elasticache_cluster", + "name": "studyoracle_redis", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "apply_immediately": null, + "arn": "arn:aws:elasticache:us-east-1:523504186842:cluster:studyoracle-redis", + "auto_minor_version_upgrade": "true", + "availability_zone": "us-east-1a", + "az_mode": "single-az", + "cache_nodes": [ + { + "address": "studyoracle-redis.wly9og.0001.use1.cache.amazonaws.com", + "availability_zone": "us-east-1a", + "id": "0001", + "outpost_arn": "", + "port": 6379 + } + ], + "cluster_address": null, + "cluster_id": "studyoracle-redis", + "configuration_endpoint": null, + "engine": "redis", + "engine_version": "7.0", + "engine_version_actual": "7.0.7", + "final_snapshot_identifier": null, + "id": "studyoracle-redis", + "ip_discovery": "ipv4", + "log_delivery_configuration": [], + "maintenance_window": "sun:03:30-sun:04:30", + "network_type": "ipv4", + "node_type": "cache.t2.micro", + "notification_topic_arn": null, + "num_cache_nodes": 1, + "outpost_mode": null, + "parameter_group_name": "default.redis7", + "port": 6379, + "preferred_availability_zones": null, + "preferred_outpost_arn": "", + "replication_group_id": "", + "security_group_ids": [], + "security_group_names": [], + "snapshot_arns": null, + "snapshot_name": null, + "snapshot_retention_limit": 0, + "snapshot_window": "05:30-06:30", + "subnet_group_name": "studyoracle-redis", + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_elasticache_subnet_group.studyoracle_redis", + "data.aws_subnets.private", + "data.aws_vpc.default" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_elasticache_subnet_group", + "name": "studyoracle_redis", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:elasticache:us-east-1:523504186842:subnetgroup:studyoracle-redis", + "description": "Managed by Terraform", + "id": "studyoracle-redis", + "name": "studyoracle-redis", + "subnet_ids": [ + "subnet-0730c48ab1d03b70b", + "subnet-0993e50cef7f473ab" + ], + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "data.aws_subnets.private", + "data.aws_vpc.default" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_lb", + "name": "studyoracle", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "access_logs": [ + { + "bucket": "", + "enabled": false, + "prefix": "" + } + ], + "arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:loadbalancer/app/studyoracle/cb045d3299808e26", + "arn_suffix": "app/studyoracle/cb045d3299808e26", + "customer_owned_ipv4_pool": "", + "desync_mitigation_mode": "defensive", + "dns_name": "studyoracle-140613702.us-east-1.elb.amazonaws.com", + "drop_invalid_header_fields": false, + "enable_cross_zone_load_balancing": true, + "enable_deletion_protection": false, + "enable_http2": true, + "enable_tls_version_and_cipher_suite_headers": false, + "enable_waf_fail_open": false, + "enable_xff_client_port": false, + "id": "arn:aws:elasticloadbalancing:us-east-1:523504186842:loadbalancer/app/studyoracle/cb045d3299808e26", + "idle_timeout": 60, + "internal": false, + "ip_address_type": "ipv4", + "load_balancer_type": "application", + "name": "studyoracle", + "name_prefix": null, + "preserve_host_header": false, + "security_groups": [ + "sg-09dcec7bcaeceb7eb" + ], + "subnet_mapping": [ + { + "allocation_id": "", + "ipv6_address": "", + "outpost_id": "", + "private_ipv4_address": "", + "subnet_id": "subnet-0730c48ab1d03b70b" + }, + { + "allocation_id": "", + "ipv6_address": "", + "outpost_id": "", + "private_ipv4_address": "", + "subnet_id": "subnet-0993e50cef7f473ab" + } + ], + "subnets": [ + "subnet-0730c48ab1d03b70b", + "subnet-0993e50cef7f473ab" + ], + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null, + "vpc_id": "vpc-05531e870ea717241", + "xff_header_processing_mode": "append", + "zone_id": "Z35SXDOTRQ7X7K" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_security_group.studyoracle_lb", + "data.aws_subnets.private", + "data.aws_vpc.default" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_lb_listener", + "name": "studyoracle_server", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "alpn_policy": null, + "arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:listener/app/studyoracle/cb045d3299808e26/8fbf8cf1e8675d69", + "certificate_arn": null, + "default_action": [ + { + "authenticate_cognito": [], + "authenticate_oidc": [], + "fixed_response": [], + "forward": [], + "order": 1, + "redirect": [], + "target_group_arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:targetgroup/studyoracleserver/8bc24e13c6a9e083", + "type": "forward" + } + ], + "id": "arn:aws:elasticloadbalancing:us-east-1:523504186842:listener/app/studyoracle/cb045d3299808e26/8fbf8cf1e8675d69", + "load_balancer_arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:loadbalancer/app/studyoracle/cb045d3299808e26", + "port": 80, + "protocol": "HTTP", + "ssl_policy": "", + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsicmVhZCI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "aws_lb.studyoracle", + "aws_lb_target_group.studyoracle_server", + "aws_security_group.studyoracle", + "aws_security_group.studyoracle_lb", + "data.aws_subnets.private", + "data.aws_vpc.default" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_lb_listener", + "name": "studyoracle_server_https", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "alpn_policy": null, + "arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:listener/app/studyoracle/cb045d3299808e26/4216d1ec1f0bb658", + "certificate_arn": "arn:aws:acm:us-east-1:523504186842:certificate/95c3e5dc-42d3-4de9-8ab2-f9f0446d8dfa", + "default_action": [ + { + "authenticate_cognito": [], + "authenticate_oidc": [], + "fixed_response": [], + "forward": [], + "order": 1, + "redirect": [], + "target_group_arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:targetgroup/studyoracleserver/8bc24e13c6a9e083", + "type": "forward" + } + ], + "id": "arn:aws:elasticloadbalancing:us-east-1:523504186842:listener/app/studyoracle/cb045d3299808e26/4216d1ec1f0bb658", + "load_balancer_arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:loadbalancer/app/studyoracle/cb045d3299808e26", + "port": 443, + "protocol": "HTTPS", + "ssl_policy": "ELBSecurityPolicy-2016-08", + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsicmVhZCI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "aws_lb.studyoracle", + "aws_lb_target_group.studyoracle_server", + "aws_security_group.studyoracle", + "aws_security_group.studyoracle_lb", + "data.aws_acm_certificate.issued", + "data.aws_subnets.private", + "data.aws_vpc.default" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_lb_target_group", + "name": "studyoracle_server", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:elasticloadbalancing:us-east-1:523504186842:targetgroup/studyoracleserver/8bc24e13c6a9e083", + "arn_suffix": "targetgroup/studyoracleserver/8bc24e13c6a9e083", + "connection_termination": false, + "deregistration_delay": "300", + "health_check": [ + { + "enabled": true, + "healthy_threshold": 2, + "interval": 10, + "matcher": "200", + "path": "/api/v1/health", + "port": "8080", + "protocol": "HTTPS", + "timeout": 5, + "unhealthy_threshold": 2 + } + ], + "id": "arn:aws:elasticloadbalancing:us-east-1:523504186842:targetgroup/studyoracleserver/8bc24e13c6a9e083", + "ip_address_type": "ipv4", + "lambda_multi_value_headers_enabled": false, + "load_balancing_algorithm_type": "round_robin", + "load_balancing_cross_zone_enabled": "use_load_balancer_configuration", + "name": "studyoracleserver", + "name_prefix": null, + "port": 8080, + "preserve_client_ip": null, + "protocol": "HTTPS", + "protocol_version": "HTTP1", + "proxy_protocol_v2": false, + "slow_start": 0, + "stickiness": [ + { + "cookie_duration": 86400, + "cookie_name": "", + "enabled": false, + "type": "lb_cookie" + } + ], + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "target_failover": [ + { + "on_deregistration": null, + "on_unhealthy": null + } + ], + "target_type": "ip", + "vpc_id": "vpc-05531e870ea717241" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_security_group.studyoracle" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route53_record", + "name": "studyoracle", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "alias": [ + { + "evaluate_target_health": true, + "name": "studyoracle-140613702.us-east-1.elb.amazonaws.com", + "zone_id": "Z35SXDOTRQ7X7K" + } + ], + "allow_overwrite": null, + "cidr_routing_policy": [], + "failover_routing_policy": [], + "fqdn": "studyoracle.com", + "geolocation_routing_policy": [], + "health_check_id": "", + "id": "Z02050511NCA0L61F2WBR_studyoracle.com_A", + "latency_routing_policy": [], + "multivalue_answer_routing_policy": false, + "name": "studyoracle.com", + "records": [], + "set_identifier": "", + "ttl": 0, + "type": "A", + "weighted_routing_policy": [], + "zone_id": "Z02050511NCA0L61F2WBR" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_lb.studyoracle", + "aws_security_group.studyoracle_lb", + "data.aws_route53_zone.studyoracle", + "data.aws_subnets.private", + "data.aws_vpc.default" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "database", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:523504186842:security-group/sg-09271a679eca107f2", + "description": "Allow inbound Postgres traffic", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [ + "::/0" + ], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-09271a679eca107f2", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 5432, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 5432 + } + ], + "name": "studyoracledb", + "name_prefix": "", + "owner_id": "523504186842", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null, + "vpc_id": "vpc-05531e870ea717241" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=" + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "studyoracle", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:523504186842:security-group/sg-026dfa396a153b67b", + "description": "studyoracle Security Group", + "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-026dfa396a153b67b", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8080, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 8080 + } + ], + "name": "studyoracle", + "name_prefix": "", + "owner_id": "523504186842", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null, + "vpc_id": "vpc-05531e870ea717241" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=" + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "studyoracle_lb", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:523504186842:security-group/sg-09dcec7bcaeceb7eb", + "description": "studyoracle Security Group", + "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-09dcec7bcaeceb7eb", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 443 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 80, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 80 + } + ], + "name": "studyoraclelb", + "name_prefix": "", + "owner_id": "523504186842", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "timeouts": null, + "vpc_id": "vpc-05531e870ea717241" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=" + } + ] + }, + { + "mode": "managed", + "type": "aws_sqs_queue", + "name": "studyoracle_queue", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:sqs:us-east-1:523504186842:studyoracle", + "content_based_deduplication": false, + "deduplication_scope": "", + "delay_seconds": 0, + "fifo_queue": false, + "fifo_throughput_limit": "", + "id": "https://sqs.us-east-1.amazonaws.com/523504186842/studyoracle", + "kms_data_key_reuse_period_seconds": 300, + "kms_master_key_id": "", + "max_message_size": 262144, + "message_retention_seconds": 345600, + "name": "studyoracle", + "name_prefix": "", + "policy": "", + "receive_wait_time_seconds": 0, + "redrive_allow_policy": "", + "redrive_policy": "", + "sqs_managed_sse_enabled": true, + "tags": {}, + "tags_all": { + "Automation": "Terraform", + "Name": "StudyOracle" + }, + "url": "https://sqs.us-east-1.amazonaws.com/523504186842/studyoracle", + "visibility_timeout_seconds": 30 + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "docker_image", + "name": "studyoracle_server", + "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "build": [ + { + "auth_config": [], + "build_arg": {}, + "build_args": {}, + "build_id": "", + "cache_from": [], + "cgroup_parent": "", + "context": ".", + "cpu_period": 0, + "cpu_quota": 0, + "cpu_set_cpus": "", + "cpu_set_mems": "", + "cpu_shares": 0, + "dockerfile": "Dockerfile.server", + "extra_hosts": [], + "force_remove": false, + "isolation": "", + "label": {}, + "labels": {}, + "memory": 0, + "memory_swap": 0, + "network_mode": "", + "no_cache": false, + "platform": "", + "pull_parent": false, + "remote_context": "", + "remove": true, + "security_opt": [], + "session_id": "", + "shm_size": 0, + "squash": false, + "suppress_output": false, + "tag": [], + "target": "", + "ulimit": [], + "version": "" + } + ], + "force_remove": null, + "id": "sha256:6c30c64495dbb47da4410272a0f6995c704f0cdc83783b70d5dd4762b26880a4523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_server:latest", + "image_id": "sha256:6c30c64495dbb47da4410272a0f6995c704f0cdc83783b70d5dd4762b26880a4", + "keep_locally": null, + "name": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_server:latest", + "platform": null, + "pull_triggers": null, + "repo_digest": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_server@sha256:9d98a968c8acdaa2adc4b14631b7722de2e93fdd7e9f2d68ec5382aa0df1152e", + "triggers": null + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_ecr_repository.studyoracle_server", + "data.aws_ecr_authorization_token.ecr_token" + ] + } + ] + }, + { + "mode": "managed", + "type": "docker_image", + "name": "studyoracle_worker", + "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "build": [ + { + "auth_config": [], + "build_arg": {}, + "build_args": {}, + "build_id": "", + "cache_from": [], + "cgroup_parent": "", + "context": ".", + "cpu_period": 0, + "cpu_quota": 0, + "cpu_set_cpus": "", + "cpu_set_mems": "", + "cpu_shares": 0, + "dockerfile": "Dockerfile.worker", + "extra_hosts": [], + "force_remove": false, + "isolation": "", + "label": {}, + "labels": {}, + "memory": 0, + "memory_swap": 0, + "network_mode": "", + "no_cache": false, + "platform": "", + "pull_parent": false, + "remote_context": "", + "remove": true, + "security_opt": [], + "session_id": "", + "shm_size": 0, + "squash": false, + "suppress_output": false, + "tag": [], + "target": "", + "ulimit": [], + "version": "" + } + ], + "force_remove": null, + "id": "sha256:505bf1eada184328703b679ada287102e6c7551cc306bf9f3fffa217dc1f2717523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_worker:latest", + "image_id": "sha256:505bf1eada184328703b679ada287102e6c7551cc306bf9f3fffa217dc1f2717", + "keep_locally": null, + "name": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_worker:latest", + "platform": null, + "pull_triggers": null, + "repo_digest": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_worker@sha256:67a9a8ad375cea4ccdb62b6d75d6c59e6c8bf80e4cd4082500d7c6dbf2023260", + "triggers": null + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_ecr_repository.studyoracle_worker", + "data.aws_ecr_authorization_token.ecr_token" + ] + } + ] + }, + { + "mode": "managed", + "type": "docker_registry_image", + "name": "studyoracle_server", + "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "sha256:9d98a968c8acdaa2adc4b14631b7722de2e93fdd7e9f2d68ec5382aa0df1152e", + "insecure_skip_verify": false, + "keep_remotely": false, + "name": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_server:latest", + "sha256_digest": "sha256:9d98a968c8acdaa2adc4b14631b7722de2e93fdd7e9f2d68ec5382aa0df1152e", + "triggers": null + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_ecr_repository.studyoracle_server", + "data.aws_ecr_authorization_token.ecr_token", + "docker_image.studyoracle_server" + ] + } + ] + }, + { + "mode": "managed", + "type": "docker_registry_image", + "name": "studyoracle_worker", + "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "sha256:67a9a8ad375cea4ccdb62b6d75d6c59e6c8bf80e4cd4082500d7c6dbf2023260", + "insecure_skip_verify": false, + "keep_remotely": false, + "name": "523504186842.dkr.ecr.us-east-1.amazonaws.com/studyoracle_worker:latest", + "sha256_digest": "sha256:67a9a8ad375cea4ccdb62b6d75d6c59e6c8bf80e4cd4082500d7c6dbf2023260", + "triggers": null + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_ecr_repository.studyoracle_worker", + "data.aws_ecr_authorization_token.ecr_token", + "docker_image.studyoracle_worker" + ] + } + ] + }, + { + "mode": "managed", + "type": "local_file", + "name": "url", + "provider": "provider[\"registry.terraform.io/hashicorp/local\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "content": "https://studyoracle-140613702.us-east-1.elb.amazonaws.com", + "content_base64": null, + "content_base64sha256": "9ljpvtPWrlYmcmQyKzasr5oGUxuxJ1zF5Wsuyktv5Fs=", + "content_base64sha512": "AJHJSF1P75UsGQcH2BQSnt3d28IO7XidSD1SLbN+nXnobz7n+Um2Bn73E+RygSpzdV8puxErd2yPWOkZy2GrgA==", + "content_md5": "a0c24559e050d5a4155f9758f94a9d02", + "content_sha1": "98810fec5c1f62d5ebbf7dd9ee97bcb80f5d9f78", + "content_sha256": "f658e9bed3d6ae56267264322b36acaf9a06531bb1275cc5e56b2eca4b6fe45b", + "content_sha512": "0091c9485d4fef952c190707d814129edddddbc20eed789d483d522db37e9d79e86f3ee7f949b6067ef713e472812a73755f29bb112b776c8f58e919cb61ab80", + "directory_permission": "0777", + "file_permission": "0777", + "filename": "./api.txt", + "id": "98810fec5c1f62d5ebbf7dd9ee97bcb80f5d9f78", + "sensitive_content": null, + "source": null + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_lb.studyoracle", + "aws_security_group.studyoracle_lb", + "data.aws_subnets.private", + "data.aws_vpc.default" + ] + } + ] + } + ], + "check_results": null +}