Skip to content

Instantly share code, notes, and snippets.

@fabricesemti80
Last active June 10, 2022 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabricesemti80/e31b4b7fb988e8fe196dfb911e126362 to your computer and use it in GitHub Desktop.
Save fabricesemti80/e31b4b7fb988e8fe196dfb911e126362 to your computer and use it in GitHub Desktop.
terraform-issues
terraform apply
data.aws_availability_zones.available: Reading...
aws_dynamodb_table.terraform-lock: Refreshing state... [id=terraform_state]
aws_s3_bucket.terraform_state: Refreshing state... [id=fs80-tf-state]
data.aws_availability_zones.available: Read complete after 0s [id=us-east-1]
aws_s3_bucket_versioning.versioning: Refreshing state... [id=fs80-tf-state]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
+ create
Terraform will perform the following actions:
# aws_cloud9_environment_ec2.default will be created
+ resource "aws_cloud9_environment_ec2" "default" {
+ arn = (known after apply)
+ automatic_stop_time_minutes = 30
+ connection_type = "CONNECT_SSH"
+ description = "Cloud9 develop environment on AWS."
+ id = (known after apply)
+ image_id = "amazonlinux-1-x86_64"
+ instance_type = "t2.micro"
+ name = "cloud9"
+ owner_arn = (known after apply)
+ subnet_id = (known after apply)
+ tags_all = (known after apply)
+ type = (known after apply)
}
# aws_subnet.main[0] will be created
+ resource "aws_subnet" "main" {
+ arn = (known after apply)
+ assign_ipv6_address_on_creation = false
+ availability_zone = "us-east-1a"
+ availability_zone_id = (known after apply)
+ cidr_block = "10.0.0.0/24"
+ enable_dns64 = false
+ enable_resource_name_dns_a_record_on_launch = false
+ enable_resource_name_dns_aaaa_record_on_launch = false
+ id = (known after apply)
+ ipv6_cidr_block_association_id = (known after apply)
+ ipv6_native = false
+ map_public_ip_on_launch = false
+ owner_id = (known after apply)
+ private_dns_hostname_type_on_launch = (known after apply)
+ tags = {
+ "Name" = "cloud9"
}
+ tags_all = {
+ "Name" = "cloud9"
}
+ vpc_id = (known after apply)
}
# aws_vpc.main will be created
+ resource "aws_vpc" "main" {
+ arn = (known after apply)
+ cidr_block = "10.0.0.0/16"
+ default_network_acl_id = (known after apply)
+ default_route_table_id = (known after apply)
+ default_security_group_id = (known after apply)
+ dhcp_options_id = (known after apply)
+ enable_classiclink = (known after apply)
+ enable_classiclink_dns_support = (known after apply)
+ enable_dns_hostnames = (known after apply)
+ enable_dns_support = true
+ id = (known after apply)
+ instance_tenancy = "default"
+ ipv6_association_id = (known after apply)
+ ipv6_cidr_block = (known after apply)
+ ipv6_cidr_block_network_border_group = (known after apply)
+ main_route_table_id = (known after apply)
+ owner_id = (known after apply)
+ tags = {
+ "Name" = "cloud9"
}
+ tags_all = {
+ "Name" = "cloud9"
}
}
Plan: 3 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ arn = (known after apply)
+ id = (known after apply)
+ type = (known after apply)
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
aws_vpc.main: Creating...
aws_vpc.main: Creation complete after 2s [id=vpc-0ee760a50f517d24f]
aws_subnet.main[0]: Creating...
aws_subnet.main[0]: Creation complete after 1s [id=subnet-0b410d80f3f61c4be]
aws_cloud9_environment_ec2.default: Creating...
aws_cloud9_environment_ec2.default: Still creating... [10s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [20s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [30s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [40s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [50s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [1m0s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [1m10s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [1m20s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [1m30s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [1m40s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [1m50s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [2m0s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [2m10s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [2m20s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [2m30s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [2m40s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [2m50s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [3m0s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [3m10s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [3m20s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [3m30s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [3m40s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [3m50s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [4m0s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [4m10s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [4m20s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [4m30s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [4m40s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [4m50s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [5m0s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [5m10s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [5m20s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [5m30s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [5m40s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [5m50s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [6m0s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [6m10s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [6m20s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [6m31s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [6m41s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [6m51s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [7m1s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [7m11s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [7m21s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [7m31s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [7m41s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [7m51s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [8m1s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [8m11s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [8m21s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [8m31s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [8m41s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [8m51s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [9m1s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [9m11s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [9m21s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [9m31s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [9m41s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [9m51s elapsed]
aws_cloud9_environment_ec2.default: Still creating... [10m1s elapsed]
│ Error: error waiting for Cloud9 EC2 Environment (86a4a6c5f9af41a1ad6140c78c90d312) create: timeout while waiting for state to become 'CREATED' (last state: 'CREATING', timeout: 10m0s)
│ with aws_cloud9_environment_ec2.default,
│ on main.tf line 21, in resource "aws_cloud9_environment_ec2" "default":
│ 21: resource "aws_cloud9_environment_ec2" "default" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment