Skip to content

Instantly share code, notes, and snippets.

@jumping
Created May 23, 2016 10:33
Show Gist options
  • Save jumping/5fd23e5e8cfd1123adcaaf219178dba7 to your computer and use it in GitHub Desktop.
Save jumping/5fd23e5e8cfd1123adcaaf219178dba7 to your computer and use it in GitHub Desktop.
output of terraform
➜ testing terraform apply -target=aws_db_subnet_group.rds_one
aws_vpc.main: Creating...
cidr_block: "" => "10.0.0.0/16"
default_network_acl_id: "" => "<computed>"
default_security_group_id: "" => "<computed>"
dhcp_options_id: "" => "<computed>"
enable_classiclink: "" => "<computed>"
enable_dns_hostnames: "" => "true"
enable_dns_support: "" => "true"
instance_tenancy: "" => "<computed>"
main_route_table_id: "" => "<computed>"
tags.#: "" => "1"
tags.Name: "" => "testing"
aws_vpc.main: Creation complete
aws_subnet.testing-public-1: Creating...
availability_zone: "" => "cn-north-1a"
cidr_block: "" => "10.0.1.0/24"
map_public_ip_on_launch: "" => "true"
tags.#: "" => "1"
tags.Name: "" => "testing-public-1"
vpc_id: "" => "vpc-e71f0482"
aws_subnet.testing-public-2: Creating...
availability_zone: "" => "cn-north-1b"
cidr_block: "" => "10.0.2.0/24"
map_public_ip_on_launch: "" => "true"
tags.#: "" => "1"
tags.Name: "" => "testing-public-2"
vpc_id: "" => "vpc-e71f0482"
aws_subnet.testing-public-1: Creation complete
aws_subnet.testing-public-2: Creation complete
aws_db_subnet_group.rds_one: Creating...
arn: "" => "<computed>"
description: "" => "db subnets for rds_one"
name: "" => "rds_one_db"
subnet_ids.#: "" => "2"
subnet_ids.4113566229: "" => "subnet-ec077a89"
subnet_ids.856656832: "" => "subnet-2651a951"
tags.#: "" => "1"
tags.Name: "" => "testing"
aws_db_subnet_group.rds_one: Creation complete
Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.
State path: terraform.tfstate
Outputs:
infra_id = e71f0482
ip =
rds_one_dns =
region = cn-north-1
tracking_role =
vpc_cidr = 10.0.0.0/16
vpc_id = vpc-e71f0482
➜ testing terraform apply -target=aws_db_subnet_group.rds_one
aws_vpc.main: Refreshing state... (ID: vpc-e71f0482)
aws_subnet.testing-public-1: Refreshing state... (ID: subnet-ec077a89)
aws_subnet.testing-public-2: Refreshing state... (ID: subnet-2651a951)
aws_db_subnet_group.rds_one: Refreshing state... (ID: rds_one_db)
aws_db_subnet_group.rds_one: Modifying...
tags.#: "0" => "1"
tags.Name: "" => "testing"
Error applying plan:
1 error(s) occurred:
* aws_db_subnet_group.rds_one: InvalidParameterValue: The specified resource name does not match an RDS resource in this region.
status code: 400, request id: 811ace0b-20d1-11e6-88b7-33a73c1df762
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment