From 34bfa7c4536bc7111b4c0df69bc24fec06a8674d Mon Sep 17 00:00:00 2001 From: Marcelo Villa Date: Mon, 28 Oct 2024 10:05:46 +0100 Subject: [PATCH] Add Terraform state files for state bootstrapping --- .../terraform/state/.terraform.lock.hcl | 20 +++++++++++++++++++ web/deploy/terraform/state/terraform.tfstate | 1 + 2 files changed, 21 insertions(+) create mode 100644 web/deploy/terraform/state/.terraform.lock.hcl create mode 100644 web/deploy/terraform/state/terraform.tfstate diff --git a/web/deploy/terraform/state/.terraform.lock.hcl b/web/deploy/terraform/state/.terraform.lock.hcl new file mode 100644 index 00000000..a69cf080 --- /dev/null +++ b/web/deploy/terraform/state/.terraform.lock.hcl @@ -0,0 +1,20 @@ +# This file is maintained automatically by "tofu init". +# Manual edits may be lost in future updates. + +provider "registry.opentofu.org/hashicorp/aws" { + version = "5.72.0" + constraints = "~> 5.0" + hashes = [ + "h1:jVAdHFoPW0MK+NCbOuXhFyW1d1z+p6sZIEVm9g50w+Q=", + "zh:2d44b2e09130c74cca01217a5fc77048ec59f92726d023e0e088419aaa7938cb", + "zh:38e7912b50ce524fc8eba4b61af8357cdf1031f7cb123655ae443bad13b16cb0", + "zh:4b80faec4c35c9abe8519124a3d6c39a1290ab78ea7cbb77edb9f21b8c42a12e", + "zh:5c678ca30e1e5eeff7aec6fcf63baec14cb3ea08e435b1646b96f46e4fab4c72", + "zh:608f381469d684d647de9d670d6c5e812f12903d52cfccb89463bbeec37990db", + "zh:64729c3c24e093488653e9aa2a34b6cd8740d9b4036af67a123a9ea9b127ba98", + "zh:6acb86202e22a814dc5fbd05ff177e617b5f56477fdff2dd617dd6332fa01bd9", + "zh:70a7b1c87763d27ddc2c83038ec6439c44acc014ea3b01440d904a46bb4564f7", + "zh:be716adb069a52ba578a0d1da4cee74cb20d50779f3fa807f717b81399de80f5", + "zh:e23f12028a99ab5afb97983b4863ef63d4908d4564c3c34b24b52081b51dde1d", + ] +} diff --git a/web/deploy/terraform/state/terraform.tfstate b/web/deploy/terraform/state/terraform.tfstate new file mode 100644 index 00000000..4cee88f6 --- /dev/null +++ b/web/deploy/terraform/state/terraform.tfstate @@ -0,0 +1 @@ +{"version":4,"terraform_version":"1.8.3","serial":17,"lineage":"42f82bf5-8bc1-2631-3209-afedb6e78b79","outputs":{},"resources":[{"module":"module.prod_state","mode":"managed","type":"aws_dynamodb_table","name":"tf_locks","provider":"module.prod_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:dynamodb:us-east-1:507624629289:table/terraform-state-locks-prod","attribute":[{"name":"LockID","type":"S"}],"billing_mode":"PAY_PER_REQUEST","deletion_protection_enabled":false,"global_secondary_index":[],"hash_key":"LockID","id":"terraform-state-locks-prod","import_table":[],"local_secondary_index":[],"name":"terraform-state-locks-prod","on_demand_throughput":[],"point_in_time_recovery":[{"enabled":false}],"range_key":null,"read_capacity":0,"replica":[],"restore_date_time":null,"restore_source_name":null,"restore_source_table_arn":null,"restore_to_latest_time":null,"server_side_encryption":[],"stream_arn":"","stream_enabled":false,"stream_label":"","stream_view_type":"","table_class":"STANDARD","tags":{"Name":"osm-terraform-state-storage-prod"},"tags_all":{"Name":"osm-terraform-state-storage-prod"},"timeouts":null,"ttl":[{"attribute_name":"","enabled":false}],"write_capacity":0},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjYwMDAwMDAwMDAwMCwidXBkYXRlIjozNjAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0="}]},{"module":"module.prod_state","mode":"managed","type":"aws_s3_bucket","name":"tf_state","provider":"module.prod_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"acceleration_status":"","acl":null,"arn":"arn:aws:s3:::osm-terraform-state-storage-prod","bucket":"osm-terraform-state-storage-prod","bucket_domain_name":"osm-terraform-state-storage-prod.s3.amazonaws.com","bucket_prefix":"","bucket_regional_domain_name":"osm-terraform-state-storage-prod.s3.us-east-1.amazonaws.com","cors_rule":[],"force_destroy":false,"grant":[{"id":"b6e96f153ed2059480e56f0ad36a4711f844b60e2866ec0ebef27a4c7103edc3","permissions":["FULL_CONTROL"],"type":"CanonicalUser","uri":""}],"hosted_zone_id":"Z3AQBSTGFYJSTF","id":"osm-terraform-state-storage-prod","lifecycle_rule":[],"logging":[],"object_lock_configuration":[],"object_lock_enabled":false,"policy":"","region":"us-east-1","replication_configuration":[],"request_payer":"BucketOwner","server_side_encryption_configuration":[{"rule":[{"apply_server_side_encryption_by_default":[{"kms_master_key_id":"","sse_algorithm":"AES256"}],"bucket_key_enabled":false}]}],"tags":{"Name":"osm-terraform-state-storage-prod"},"tags_all":{"Name":"osm-terraform-state-storage-prod"},"timeouts":null,"versioning":[{"enabled":false,"mfa_delete":false}],"website":[],"website_domain":null,"website_endpoint":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"}]},{"module":"module.prod_state","mode":"managed","type":"aws_s3_bucket_lifecycle_configuration","name":"tf_state","provider":"module.prod_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-prod","expected_bucket_owner":"","id":"osm-terraform-state-storage-prod","rule":[{"abort_incomplete_multipart_upload":[],"expiration":[{"date":"","days":365,"expired_object_delete_marker":false}],"filter":[{"and":[],"object_size_greater_than":"","object_size_less_than":"","prefix":"","tag":[]}],"id":"tf_state_prod","noncurrent_version_expiration":[],"noncurrent_version_transition":[],"prefix":"","status":"Enabled","transition":[{"date":"","days":30,"storage_class":"STANDARD_IA"}]}],"timeouts":null,"transition_default_minimum_object_size":"all_storage_classes_128K"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwfX0=","dependencies":["module.prod_state.aws_s3_bucket.tf_state"]}]},{"module":"module.prod_state","mode":"managed","type":"aws_s3_bucket_server_side_encryption_configuration","name":"default","provider":"module.prod_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-prod","expected_bucket_owner":"","id":"osm-terraform-state-storage-prod","rule":[{"apply_server_side_encryption_by_default":[{"kms_master_key_id":"","sse_algorithm":"AES256"}],"bucket_key_enabled":null}]},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["module.prod_state.aws_s3_bucket.tf_state"]}]},{"module":"module.prod_state","mode":"managed","type":"aws_s3_bucket_versioning","name":"enabled","provider":"module.prod_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-prod","expected_bucket_owner":"","id":"osm-terraform-state-storage-prod","mfa":null,"versioning_configuration":[{"mfa_delete":"","status":"Enabled"}]},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["module.prod_state.aws_s3_bucket.tf_state"]}]},{"module":"module.shared_state","mode":"managed","type":"aws_dynamodb_table","name":"tf_locks","provider":"module.shared_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:dynamodb:us-east-1:507624629289:table/terraform-state-locks-shared","attribute":[{"name":"LockID","type":"S"}],"billing_mode":"PAY_PER_REQUEST","deletion_protection_enabled":false,"global_secondary_index":[],"hash_key":"LockID","id":"terraform-state-locks-shared","import_table":[],"local_secondary_index":[],"name":"terraform-state-locks-shared","on_demand_throughput":[],"point_in_time_recovery":[{"enabled":false}],"range_key":null,"read_capacity":0,"replica":[],"restore_date_time":null,"restore_source_name":null,"restore_source_table_arn":null,"restore_to_latest_time":null,"server_side_encryption":[],"stream_arn":"","stream_enabled":false,"stream_label":"","stream_view_type":"","table_class":"STANDARD","tags":{"Name":"osm-terraform-state-storage-shared"},"tags_all":{"Name":"osm-terraform-state-storage-shared"},"timeouts":null,"ttl":[{"attribute_name":"","enabled":false}],"write_capacity":0},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjYwMDAwMDAwMDAwMCwidXBkYXRlIjozNjAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0="}]},{"module":"module.shared_state","mode":"managed","type":"aws_s3_bucket","name":"tf_state","provider":"module.shared_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"acceleration_status":"","acl":null,"arn":"arn:aws:s3:::osm-terraform-state-storage-shared","bucket":"osm-terraform-state-storage-shared","bucket_domain_name":"osm-terraform-state-storage-shared.s3.amazonaws.com","bucket_prefix":"","bucket_regional_domain_name":"osm-terraform-state-storage-shared.s3.us-east-1.amazonaws.com","cors_rule":[],"force_destroy":false,"grant":[{"id":"b6e96f153ed2059480e56f0ad36a4711f844b60e2866ec0ebef27a4c7103edc3","permissions":["FULL_CONTROL"],"type":"CanonicalUser","uri":""}],"hosted_zone_id":"Z3AQBSTGFYJSTF","id":"osm-terraform-state-storage-shared","lifecycle_rule":[{"abort_incomplete_multipart_upload_days":0,"enabled":true,"expiration":[{"date":"","days":365,"expired_object_delete_marker":false}],"id":"tf_state_shared","noncurrent_version_expiration":[],"noncurrent_version_transition":[],"prefix":"","tags":{},"transition":[{"date":"","days":30,"storage_class":"STANDARD_IA"}]}],"logging":[],"object_lock_configuration":[],"object_lock_enabled":false,"policy":"","region":"us-east-1","replication_configuration":[],"request_payer":"BucketOwner","server_side_encryption_configuration":[{"rule":[{"apply_server_side_encryption_by_default":[{"kms_master_key_id":"","sse_algorithm":"AES256"}],"bucket_key_enabled":false}]}],"tags":{"Name":"osm-terraform-state-storage-shared"},"tags_all":{"Name":"osm-terraform-state-storage-shared"},"timeouts":null,"versioning":[{"enabled":true,"mfa_delete":false}],"website":[],"website_domain":null,"website_endpoint":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"}]},{"module":"module.shared_state","mode":"managed","type":"aws_s3_bucket_lifecycle_configuration","name":"tf_state","provider":"module.shared_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-shared","expected_bucket_owner":"","id":"osm-terraform-state-storage-shared","rule":[{"abort_incomplete_multipart_upload":[],"expiration":[{"date":"","days":365,"expired_object_delete_marker":false}],"filter":[{"and":[],"object_size_greater_than":"","object_size_less_than":"","prefix":"","tag":[]}],"id":"tf_state_shared","noncurrent_version_expiration":[],"noncurrent_version_transition":[],"prefix":"","status":"Enabled","transition":[{"date":"","days":30,"storage_class":"STANDARD_IA"}]}],"timeouts":null,"transition_default_minimum_object_size":"all_storage_classes_128K"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwfX0=","dependencies":["module.shared_state.aws_s3_bucket.tf_state"]}]},{"module":"module.shared_state","mode":"managed","type":"aws_s3_bucket_server_side_encryption_configuration","name":"default","provider":"module.shared_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-shared","expected_bucket_owner":"","id":"osm-terraform-state-storage-shared","rule":[{"apply_server_side_encryption_by_default":[{"kms_master_key_id":"","sse_algorithm":"AES256"}],"bucket_key_enabled":false}]},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["module.shared_state.aws_s3_bucket.tf_state"]}]},{"module":"module.shared_state","mode":"managed","type":"aws_s3_bucket_versioning","name":"enabled","provider":"module.shared_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-shared","expected_bucket_owner":"","id":"osm-terraform-state-storage-shared","mfa":null,"versioning_configuration":[{"mfa_delete":"","status":"Enabled"}]},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["module.shared_state.aws_s3_bucket.tf_state"]}]},{"module":"module.stage_state","mode":"managed","type":"aws_dynamodb_table","name":"tf_locks","provider":"module.stage_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":1,"attributes":{"arn":"arn:aws:dynamodb:us-east-1:507624629289:table/terraform-state-locks-stage","attribute":[{"name":"LockID","type":"S"}],"billing_mode":"PAY_PER_REQUEST","deletion_protection_enabled":false,"global_secondary_index":[],"hash_key":"LockID","id":"terraform-state-locks-stage","import_table":[],"local_secondary_index":[],"name":"terraform-state-locks-stage","on_demand_throughput":[],"point_in_time_recovery":[{"enabled":false}],"range_key":null,"read_capacity":0,"replica":[],"restore_date_time":null,"restore_source_name":null,"restore_source_table_arn":null,"restore_to_latest_time":null,"server_side_encryption":[],"stream_arn":"","stream_enabled":false,"stream_label":"","stream_view_type":"","table_class":"STANDARD","tags":{"Name":"osm-terraform-state-storage-stage"},"tags_all":{"Name":"osm-terraform-state-storage-stage"},"timeouts":null,"ttl":[{"attribute_name":"","enabled":false}],"write_capacity":0},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjYwMDAwMDAwMDAwMCwidXBkYXRlIjozNjAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0="}]},{"module":"module.stage_state","mode":"managed","type":"aws_s3_bucket","name":"tf_state","provider":"module.stage_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"acceleration_status":"","acl":null,"arn":"arn:aws:s3:::osm-terraform-state-storage-stage","bucket":"osm-terraform-state-storage-stage","bucket_domain_name":"osm-terraform-state-storage-stage.s3.amazonaws.com","bucket_prefix":"","bucket_regional_domain_name":"osm-terraform-state-storage-stage.s3.us-east-1.amazonaws.com","cors_rule":[],"force_destroy":false,"grant":[{"id":"b6e96f153ed2059480e56f0ad36a4711f844b60e2866ec0ebef27a4c7103edc3","permissions":["FULL_CONTROL"],"type":"CanonicalUser","uri":""}],"hosted_zone_id":"Z3AQBSTGFYJSTF","id":"osm-terraform-state-storage-stage","lifecycle_rule":[{"abort_incomplete_multipart_upload_days":0,"enabled":true,"expiration":[{"date":"","days":365,"expired_object_delete_marker":false}],"id":"tf_state_stage","noncurrent_version_expiration":[],"noncurrent_version_transition":[],"prefix":"","tags":{},"transition":[{"date":"","days":30,"storage_class":"STANDARD_IA"}]}],"logging":[],"object_lock_configuration":[],"object_lock_enabled":false,"policy":"","region":"us-east-1","replication_configuration":[],"request_payer":"BucketOwner","server_side_encryption_configuration":[{"rule":[{"apply_server_side_encryption_by_default":[{"kms_master_key_id":"","sse_algorithm":"AES256"}],"bucket_key_enabled":false}]}],"tags":{"Name":"osm-terraform-state-storage-stage"},"tags_all":{"Name":"osm-terraform-state-storage-stage"},"timeouts":null,"versioning":[{"enabled":true,"mfa_delete":false}],"website":[],"website_domain":null,"website_endpoint":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"}]},{"module":"module.stage_state","mode":"managed","type":"aws_s3_bucket_lifecycle_configuration","name":"tf_state","provider":"module.stage_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-stage","expected_bucket_owner":"","id":"osm-terraform-state-storage-stage","rule":[{"abort_incomplete_multipart_upload":[],"expiration":[{"date":"","days":365,"expired_object_delete_marker":false}],"filter":[{"and":[],"object_size_greater_than":"","object_size_less_than":"","prefix":"","tag":[]}],"id":"tf_state_stage","noncurrent_version_expiration":[],"noncurrent_version_transition":[],"prefix":"","status":"Enabled","transition":[{"date":"","days":30,"storage_class":"STANDARD_IA"}]}],"timeouts":null,"transition_default_minimum_object_size":"all_storage_classes_128K"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwfX0=","dependencies":["module.stage_state.aws_s3_bucket.tf_state"]}]},{"module":"module.stage_state","mode":"managed","type":"aws_s3_bucket_server_side_encryption_configuration","name":"default","provider":"module.stage_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-stage","expected_bucket_owner":"","id":"osm-terraform-state-storage-stage","rule":[{"apply_server_side_encryption_by_default":[{"kms_master_key_id":"","sse_algorithm":"AES256"}],"bucket_key_enabled":false}]},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["module.stage_state.aws_s3_bucket.tf_state"]}]},{"module":"module.stage_state","mode":"managed","type":"aws_s3_bucket_versioning","name":"enabled","provider":"module.stage_state.provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"bucket":"osm-terraform-state-storage-stage","expected_bucket_owner":"","id":"osm-terraform-state-storage-stage","mfa":null,"versioning_configuration":[{"mfa_delete":"","status":"Enabled"}]},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["module.stage_state.aws_s3_bucket.tf_state"]}]}],"check_results":null}