diff --git a/.gitignore b/.gitignore index 151bfa6..ad7360d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ terraform.tfvars +terraform.tfstate.backup # Local .terraform directories .terraform/ diff --git a/k8s/mongodb.yaml b/k8s/mongodb.yaml new file mode 100644 index 0000000..5be604c --- /dev/null +++ b/k8s/mongodb.yaml @@ -0,0 +1,74 @@ +apiVersion : app/v1 +kind: StatefulSet +metadata: + name: mongodb + namespace: issue-tracker +specs: + serviceName: "mongodb" + replicas: 1 + selector: + matchLabels: + app: mongodb + template: + metadata: + Labels: + app: mongodb + specs: + containers: + - name: mongodb + image: mongo:6-jammy + ports: + - container-ports: 27017 + env: + - name: MONGO_INITDB_ROOT_USERNAME + value: Yasindu + - name: MONGO_INITDB_ROOT_PASSWORD + value: yasindu20 + volumeMounts: + - name: mongodb-storage + mountPath: /data/db + resources: + requests: + memory: "256Mi" + cpu: "250m" + limits: + memory: "512Mi" + cpu: "500m" + livenessProbe: + exec: + command: + - mongosh + - --eval + - db.adminCommand('ping') + intialDelaySeconds: 30 + periodSeconds: 10 + readinessProbe: + exec: + command: + - mongosh + - --eval + - db.adminCommand('ping') + intialDelaySeconds: 5 + periodSeconds: 5 + volumeClaimTemplates: + - metadata: + name: mongodb-storage + spec: + accessModes: ["ReadWriteOnce"] + resources: + requests: + storage: 1Gi + +--- +apiVersion: v1 +kind: service +metadata: + name: mongodb + namespace: issue-tracker +spec: + selector: + app: mongodb + ports: + - port: 27017 + targetport: 27017 + clusterIP: None \ No newline at end of file diff --git a/k8s/namespace.yaml b/k8s/namespace.yaml new file mode 100644 index 0000000..530da91 --- /dev/null +++ b/k8s/namespace.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: namespace +metadata: + name: issue-tracker + labels: + name: issue-tracker + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: app-Config + namespace: issue-tracker +data: + NODE_ENV: "production" + REACT_APP_API_URL: "http://localhost:8080/api" + +--- +apiVersion: v1 +kind: secret +metadata: + name: app-secret + namespace: issue-tracker +type: Opaque +stringData: + mongodb-uri: "mongodb+srv://Yasindu:yasindu20@issue-tracker-free.ffoquxf.mongodb.net/?retryWrites=true&w=majority&appName=issue-tracker-free" + jwt-secret: "your-super-secret-jwt-key-here-make-it-long-and-complex" diff --git a/terraform/main.tf b/terraform/main.tf index b3c5464..76094bb 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -122,7 +122,7 @@ resource "aws_security_group" "backend" { # AWS EC2 Instance for Backend resource "aws_instance" "backend" { ami = "ami-0c02fb55956c7d316" - instance_type = "t2.micro" + instance_type = "t3.micro" subnet_id = aws_subnet.main.id vpc_security_group_ids = [aws_security_group.backend.id] key_name = var.aws_key_name @@ -161,13 +161,6 @@ resource "mongodbatlas_cluster" "free_cluster" { backing_provider_name = "AWS" provider_region_name = "US_EAST_1" provider_instance_size_name = "M0" - - # free tier settings - disk_size_gb = 5 - - lifecycle { - ignore_changes = [disk_size_gb] - } } # vercel frontend Deployment diff --git a/terraform/plan.tfplan b/terraform/plan.tfplan index cafc0f3..34422e4 100644 Binary files a/terraform/plan.tfplan and b/terraform/plan.tfplan differ diff --git a/terraform/terraform.tfstate b/terraform/terraform.tfstate index 05833ef..83978e1 100644 --- a/terraform/terraform.tfstate +++ b/terraform/terraform.tfstate @@ -1,15 +1,171 @@ { "version": 4, "terraform_version": "1.5.7", - "serial": 13, + "serial": 21, "lineage": "c5f764b6-5db0-0d43-a8bc-df41d8037f1a", "outputs": { + "backend_url": { + "value": "https://54.161.119.55:3000", + "type": "string" + }, + "ec2_public_ip": { + "value": "54.161.119.55", + "type": "string" + }, "frontend_url": { "value": "issue-tracker-frontend-pzuq75a4j-yasindu20s-projects.vercel.app", "type": "string" + }, + "mongodb_connection_string": { + "value": "mongodb+srv://issue-tracker-free.ffoquxf.mongodb.net", + "type": "string", + "sensitive": true } }, "resources": [ + { + "mode": "managed", + "type": "aws_instance", + "name": "backend", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "ami": "ami-0c02fb55956c7d316", + "arn": "arn:aws:ec2:us-east-1:053678525731:instance/i-0fcfbf9f6bbe41214", + "associate_public_ip_address": true, + "availability_zone": "us-east-1b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 1, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 1, + "threads_per_core": 2 + } + ], + "cpu_threads_per_core": 2, + "credit_specification": [ + { + "cpu_credits": "unlimited" + } + ], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enable_primary_ipv6": null, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "", + "id": "i-0fcfbf9f6bbe41214", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "t3.micro", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-0b7b142ade0b95ae9", + "private_dns": "ip-10-0-0-71.ec2.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.0.71", + "public_dns": "", + "public_ip": "54.161.119.55", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/xvda", + "encrypted": false, + "iops": 100, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 0, + "volume_id": "vol-0044720a11fb25f1f", + "volume_size": 8, + "volume_type": "gp2" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-06d3f0ec07af8a78a", + "tags": { + "name": "issue-tracker-backend-instance" + }, + "tags_all": { + "name": "issue-tracker-backend-instance" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "fa3cb3badefd29edc0675dc1d9e0ca405c86f40f", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-009ea9136236b075f" + ] + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "user_data" + } + ] + ], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_security_group.backend", + "aws_subnet.main" + ] + } + ] + }, { "mode": "managed", "type": "aws_internet_gateway", @@ -281,56 +437,132 @@ "type": "mongodbatlas_cluster", "name": "free_cluster", "provider": "provider[\"registry.terraform.io/mongodb/mongodbatlas\"]", - "instances": [] - }, - { - "mode": "managed", - "type": "railway_environment", - "name": "production", - "provider": "provider[\"registry.terraform.io/terraform-community-providers/railway\"]", - "instances": [] - }, - { - "mode": "managed", - "type": "railway_service", - "name": "backend", - "provider": "provider[\"registry.terraform.io/terraform-community-providers/railway\"]", - "instances": [] - }, - { - "mode": "managed", - "type": "railway_service_domain", - "name": "backend", - "provider": "provider[\"registry.terraform.io/terraform-community-providers/railway\"]", - "instances": [] - }, - { - "mode": "managed", - "type": "railway_variable", - "name": "jwt_secret", - "provider": "provider[\"registry.terraform.io/terraform-community-providers/railway\"]", - "instances": [] - }, - { - "mode": "managed", - "type": "railway_variable", - "name": "mongodb_url", - "provider": "provider[\"registry.terraform.io/terraform-community-providers/railway\"]", - "instances": [] - }, - { - "mode": "managed", - "type": "railway_variable", - "name": "node_env", - "provider": "provider[\"registry.terraform.io/terraform-community-providers/railway\"]", - "instances": [] + "instances": [ + { + "schema_version": 1, + "attributes": { + "advanced_configuration": [ + { + "default_read_concern": "", + "default_write_concern": "", + "fail_index_key_too_long": false, + "javascript_enabled": true, + "minimum_enabled_tls_protocol": "TLS1_2", + "no_table_scan": false, + "oplog_size_mb": 0, + "sample_refresh_interval_bi_connector": 0, + "sample_size_bi_connector": 0 + } + ], + "auto_scaling_compute_enabled": false, + "auto_scaling_compute_scale_down_enabled": false, + "auto_scaling_disk_gb_enabled": false, + "backing_provider_name": "AWS", + "backup_enabled": false, + "bi_connector": null, + "bi_connector_config": [ + { + "enabled": false, + "read_preference": "secondary" + } + ], + "cloud_backup": false, + "cluster_id": "68e2abdae2377a0297ff02ce", + "cluster_type": "REPLICASET", + "connection_strings": [ + { + "aws_private_link": {}, + "aws_private_link_srv": {}, + "private": "", + "private_endpoint": [], + "private_srv": "", + "standard": "mongodb://ac-a7lyfgg-shard-00-00.ffoquxf.mongodb.net:27017,ac-a7lyfgg-shard-00-01.ffoquxf.mongodb.net:27017,ac-a7lyfgg-shard-00-02.ffoquxf.mongodb.net:27017/?ssl=true\u0026authSource=admin\u0026replicaSet=atlas-qh4n6x-shard-0", + "standard_srv": "mongodb+srv://issue-tracker-free.ffoquxf.mongodb.net" + } + ], + "container_id": null, + "disk_size_gb": 0.5, + "encryption_at_rest_provider": "NONE", + "id": "Y2x1c3Rlcl9pZA==:NjhlMmFiZGFlMjM3N2EwMjk3ZmYwMmNl-Y2x1c3Rlcl9uYW1l:aXNzdWUtdHJhY2tlci1mcmVl-cHJvamVjdF9pZA==:NjhlMmE3MjdkYjk1YzA0Y2YzNDBhYTY3-cHJvdmlkZXJfbmFtZQ==:VEVOQU5U", + "labels": [], + "mongo_db_major_version": "8.0", + "mongo_db_version": "8.0.14", + "mongo_uri": "mongodb://ac-a7lyfgg-shard-00-00.ffoquxf.mongodb.net:27017,ac-a7lyfgg-shard-00-01.ffoquxf.mongodb.net:27017,ac-a7lyfgg-shard-00-02.ffoquxf.mongodb.net:27017", + "mongo_uri_updated": "2025-10-05T17:33:32Z", + "mongo_uri_with_options": "mongodb://ac-a7lyfgg-shard-00-00.ffoquxf.mongodb.net:27017,ac-a7lyfgg-shard-00-01.ffoquxf.mongodb.net:27017,ac-a7lyfgg-shard-00-02.ffoquxf.mongodb.net:27017/?ssl=true\u0026authSource=admin\u0026replicaSet=atlas-qh4n6x-shard-0", + "name": "issue-tracker-free", + "num_shards": 1, + "paused": false, + "pit_enabled": false, + "project_id": "68e2a727db95c04cf340aa67", + "provider_auto_scaling_compute_max_instance_size": "", + "provider_auto_scaling_compute_min_instance_size": "", + "provider_backup_enabled": false, + "provider_disk_iops": null, + "provider_disk_type_name": "", + "provider_encrypt_ebs_volume": null, + "provider_encrypt_ebs_volume_flag": null, + "provider_instance_size_name": "M0", + "provider_name": "TENANT", + "provider_region_name": "US_EAST_1", + "provider_volume_type": "", + "replication_factor": 3, + "replication_specs": [ + { + "id": "68e2abd9e2377a0297ff0280", + "num_shards": 1, + "regions_config": [ + { + "analytics_nodes": 0, + "electable_nodes": 3, + "priority": 7, + "read_only_nodes": 0, + "region_name": "US_EAST_1" + } + ], + "zone_name": "Zone 1" + } + ], + "snapshot_backup_policy": [], + "srv_address": "mongodb+srv://issue-tracker-free.ffoquxf.mongodb.net", + "state_name": "IDLE" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "mongodbatlas_project.issue_tracker" + ] + } + ] }, { "mode": "managed", - "type": "railway_variable", - "name": "port", - "provider": "provider[\"registry.terraform.io/terraform-community-providers/railway\"]", - "instances": [] + "type": "mongodbatlas_project", + "name": "issue_tracker", + "provider": "provider[\"registry.terraform.io/mongodb/mongodbatlas\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "cluster_count": 0, + "created": "2025-10-05T17:13:14Z", + "id": "68e2a727db95c04cf340aa67", + "name": "issue-tracker", + "org_id": "6884a3c39797b6261b1014e3", + "project_owner_id": null, + "teams": [] + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "org_id" + } + ] + ], + "private": "bnVsbA==" + } + ] }, { "mode": "managed", @@ -433,7 +665,32 @@ "type": "vercel_project_environment_variable", "name": "api_url", "provider": "provider[\"registry.terraform.io/vercel/vercel\"]", - "instances": [] + "instances": [ + { + "schema_version": 0, + "attributes": { + "comment": "", + "custom_environment_ids": [], + "git_branch": null, + "id": "dJFoP9CiFfCRENbi", + "key": "REACT_APP_API_URL", + "project_id": "prj_gHiloCgAI4CfCjbKkhCSghOcxwGi", + "sensitive": false, + "target": [ + "production" + ], + "team_id": null, + "value": "https://54.161.119.55:3000/api" + }, + "sensitive_attributes": [], + "dependencies": [ + "aws_instance.backend", + "aws_security_group.backend", + "aws_subnet.main", + "vercel_project.frontend" + ] + } + ] } ], "check_results": null diff --git a/terraform/terraform.tfstate.backup b/terraform/terraform.tfstate.backup index f632926..8132593 100644 --- a/terraform/terraform.tfstate.backup +++ b/terraform/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.5.7", - "serial": 5, + "serial": 17, "lineage": "c5f764b6-5db0-0d43-a8bc-df41d8037f1a", "outputs": { "frontend_url": { @@ -12,10 +12,298 @@ "resources": [ { "mode": "managed", - "type": "mongodbatlas_cluster", - "name": "free_cluster", + "type": "aws_internet_gateway", + "name": "main", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:053678525731:internet-gateway/igw-04af5cdc1bf3f644c", + "id": "igw-04af5cdc1bf3f644c", + "owner_id": "053678525731", + "tags": { + "Name": "issue_tracker_igw" + }, + "tags_all": { + "Name": "issue_tracker_igw" + }, + "timeouts": null, + "vpc_id": "vpc-03ed89f209948e16a" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "main", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:053678525731:route-table/rtb-044104997d1675b50", + "id": "rtb-044104997d1675b50", + "owner_id": "053678525731", + "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-04af5cdc1bf3f644c", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "issue_tracker_rt" + }, + "tags_all": { + "Name": "issue_tracker_rt" + }, + "timeouts": null, + "vpc_id": "vpc-03ed89f209948e16a" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "main", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-028d45deaaec7c2d2", + "route_table_id": "rtb-044104997d1675b50", + "subnet_id": "subnet-06d3f0ec07af8a78a", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.main", + "aws_route_table.main", + "aws_subnet.main", + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "backend", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:053678525731:security-group/sg-009ea9136236b075f", + "description": "Allow inbound traffic for backend", + "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-009ea9136236b075f", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 3000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 3000 + }, + { + "cidr_blocks": [ + "112.134.144.32/32" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + } + ], + "name": "issue-tracker-backend-sg", + "name_prefix": "", + "owner_id": "053678525731", + "revoke_rules_on_delete": false, + "tags": { + "name": "issue-tracker-backend-sg" + }, + "tags_all": { + "name": "issue-tracker-backend-sg" + }, + "timeouts": null, + "vpc_id": "vpc-03ed89f209948e16a" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "main", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:053678525731:subnet/subnet-06d3f0ec07af8a78a", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-1b", + "availability_zone_id": "use1-az6", + "cidr_block": "10.0.0.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-06d3f0ec07af8a78a", + "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": "053678525731", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": { + "name": "issue_tracker_subnet" + }, + "tags_all": { + "name": "issue_tracker_subnet" + }, + "timeouts": null, + "vpc_id": "vpc-03ed89f209948e16a" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.main" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc", + "name": "main", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-1:053678525731:vpc/vpc-03ed89f209948e16a", + "assign_generated_ipv6_cidr_block": false, + "cidr_block": "10.0.0.0/16", + "default_network_acl_id": "acl-0b585a8cebf6adfa1", + "default_route_table_id": "rtb-0067f4a252d9e2160", + "default_security_group_id": "sg-02208a50ad984a34c", + "dhcp_options_id": "dopt-0c79c3be47546fe0b", + "enable_dns_hostnames": false, + "enable_dns_support": true, + "enable_network_address_usage_metrics": false, + "id": "vpc-03ed89f209948e16a", + "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-0067f4a252d9e2160", + "owner_id": "053678525731", + "tags": { + "name": "issue_tracker_vpc" + }, + "tags_all": { + "name": "issue_tracker_vpc" + } + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + }, + { + "mode": "managed", + "type": "mongodbatlas_project", + "name": "issue_tracker", "provider": "provider[\"registry.terraform.io/mongodb/mongodbatlas\"]", - "instances": [] + "instances": [ + { + "schema_version": 0, + "attributes": { + "cluster_count": 0, + "created": "2025-10-05T17:13:14Z", + "id": "68e2a727db95c04cf340aa67", + "name": "issue-tracker", + "org_id": "6884a3c39797b6261b1014e3", + "project_owner_id": null, + "teams": [] + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "org_id" + } + ] + ], + "private": "bnVsbA==" + } + ] }, { "mode": "managed",