diff options
| author | mo khan <mo@mokhan.ca> | 2022-03-06 12:55:36 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2022-03-06 12:55:36 -0700 |
| commit | 9713a48492a972da80f0047951511011cd442a9f (patch) | |
| tree | cae4df22ec63ab1a838cef0b67a49b1a9db93426 | |
| parent | 8e48cea42f00f4ba0403110af892435692ae3e7d (diff) | |
use same ami and region in book
| -rw-r--r-- | main.tf | 4 | ||||
| -rw-r--r-- | terraform.tfstate | 107 | ||||
| -rw-r--r-- | terraform.tfstate.backup | 8 |
3 files changed, 115 insertions, 4 deletions
@@ -1,8 +1,8 @@ provider "aws" { - region = "ca-central-1" + region = "us-east-2" } resource "aws_instance" "example" { - ami = "ami-07d02ee1eeb0c996c" + ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" } diff --git a/terraform.tfstate b/terraform.tfstate index 2034ef6..780d3b6 100644 --- a/terraform.tfstate +++ b/terraform.tfstate @@ -1,8 +1,111 @@ { "version": 4, "terraform_version": "1.1.7", - "serial": 1, + "serial": 3, "lineage": "23dd28d7-f0d6-93fe-ce34-2f59f140a3de", "outputs": {}, - "resources": [] + "resources": [ + { + "mode": "managed", + "type": "aws_instance", + "name": "example", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "ami": "ami-0c55b159cbfafe1f0", + "arn": "arn:aws:ec2:us-east-2:119201842733:instance/i-09ade99a561d9519e", + "associate_public_ip_address": true, + "availability_zone": "us-east-2c", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 1, + "cpu_threads_per_core": 1, + "credit_specification": [ + { + "cpu_credits": "standard" + } + ], + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": null, + "iam_instance_profile": "", + "id": "i-09ade99a561d9519e", + "instance_initiated_shutdown_behavior": "stop", + "instance_state": "running", + "instance_type": "t2.micro", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "", + "launch_template": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "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": null, + "primary_network_interface_id": "eni-0155af18963a64b79", + "private_dns": "ip-172-31-36-37.us-east-2.compute.internal", + "private_ip": "172.31.36.37", + "public_dns": "ec2-18-217-74-30.us-east-2.compute.amazonaws.com", + "public_ip": "18.217.74.30", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 100, + "kms_key_id": "", + "tags": {}, + "throughput": 0, + "volume_id": "vol-07cef959bc1fc9607", + "volume_size": 8, + "volume_type": "gp2" + } + ], + "secondary_private_ips": [], + "security_groups": [ + "default" + ], + "source_dest_check": true, + "subnet_id": "subnet-39eef973", + "tags": null, + "tags_all": {}, + "tenancy": "default", + "timeouts": null, + "user_data": null, + "user_data_base64": null, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-1c902075" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + } + ] } diff --git a/terraform.tfstate.backup b/terraform.tfstate.backup new file mode 100644 index 0000000..2034ef6 --- /dev/null +++ b/terraform.tfstate.backup @@ -0,0 +1,8 @@ +{ + "version": 4, + "terraform_version": "1.1.7", + "serial": 1, + "lineage": "23dd28d7-f0d6-93fe-ce34-2f59f140a3de", + "outputs": {}, + "resources": [] +} |
