Skip to content

Instantly share code, notes, and snippets.

@stratog
Created March 27, 2017 21:44
Show Gist options
  • Save stratog/2e55d3b1ca42aaeaaa434139a1214542 to your computer and use it in GitHub Desktop.
Save stratog/2e55d3b1ca42aaeaaa434139a1214542 to your computer and use it in GitHub Desktop.
{
"data": {
"google_iam_policy": {
"ebay_iam": {
"binding": [
{
"members": [
"group:n-eng@ebay.com"
],
"role": "roles/viewer"
},
{
"members": [
"group:n-eng@ebay.com",
"serviceAccount:${google_service_account.terraform.email}"
],
"role": "roles/editor"
}
]
}
}
},
"provider": {
"google": {
"credentials": "${file(\"~/.ssh/n/terraform.json\")}",
"project": "terraform-test-nonprod",
"region": "asia-northeast1"
}
},
"resource": {
"google_compute_firewall": {
"allow_icmp": {
"allow": [
{
"protocol": "icmp"
}
],
"name": "allow-icmp-m",
"network": "terraform-test-nonprod-m",
"source_ranges": [
"0.0.0.0/0"
]
},
"allow_web": {
"allow": [
{
"ports": [
80,
443
],
"protocol": "tcp"
}
],
"name": "allow-web-m",
"network": "terraform-test-nonprod-m",
"source_ranges": [
"0.0.0.0/0"
]
},
"elasticsearch_nchant": {
"allow": [
{
"ports": [
9200,
9300,
5601
],
"protocol": "tcp"
}
],
"name": "elasticsearch-nchant-m",
"network": "terraform-test-nonprod-m",
"source_ranges": [
"192.168.1.1/32",
"216.113.160.0/24",
"216.113.170.0/24",
"216.113.160.67",
"216.113.160.71",
"66.135.192.0/19",
"66.211.160.0/19",
"216.113.176.0/20",
"66.211.160.0/21",
"66.211.172.0/22",
"66.211.176.0/20",
"10.146.0.0/20"
],
"target_tags": [
"elasticsearch"
]
}
},
"google_compute_network": {
"terraform-test-nonprod": {
"auto_create_subnetworks": false,
"name": "terraform-test-nonprod-m"
}
},
"google_container_cluster": {
"asia-northeast1-std-m": {
"additional_zones": [
"b"
],
"initial_node_count": 1,
"master_auth": {
"password": "testymctestface",
"username": "admin"
},
"name": "asia-northeast1-std-m",
"node_config": {
"oauth_scopes": [
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring"
]
},
"zone": "asia-northeast1-a"
}
},
"google_dns_managed_zone": {
"n2_nonprod": {
"dns_name": "nsync.us.",
"name": "n2-nonprod-m"
}
},
"google_project": {
"terraform-test-nonprod": {
"billing_account": "****",
"name": "terraform-test-nonprod",
"org_id": "****",
"project_id": "terraform-test-nonprod"
}
},
"google_project_iam_policy": {
"terraform-test-nonprod": {
"policy_data": "${data.google_iam_policy.ebay_iam.policy_data}",
"project": "terraform-test-nonprod"
}
},
"google_project_services": {
"terraform-test-nonprod": {
"project": "terraform-test-nonprod",
"services": [
"deploymentmanager.googleapis.com",
"bigquery-json.googleapis.com",
"monitoring.googleapis.com",
"dns.googleapis.com",
"clouddebugger.googleapis.com",
"datastore.googleapis.com",
"sql-component.googleapis.com",
"iam.googleapis.com",
"storage-component.googleapis.com",
"cloudtrace.googleapis.com",
"container.googleapis.com",
"servicemanagement.googleapis.com",
"storage-api.googleapis.com",
"logging.googleapis.com",
"resourceviews.googleapis.com",
"compute-component.googleapis.com",
"replicapool.googleapis.com",
"replicapoolupdater.googleapis.com",
"cloudapis.googleapis.com",
"servicemanagement.googleapis.com",
"cloudbilling.googleapis.com",
"dataproc-control.googleapis.com",
"resourceviews.googleapis.com",
"replicapool.googleapis.com",
"replicapoolupdater.googleapis.com",
"containeranalysis.googleapis.com",
"cloudbuild.googleapis.com",
"containerregistry.googleapis.com",
"cloudresourcemanager.googleapis.com"
]
}
},
"google_service_account": {
"terraform": {
"account_id": "terraform",
"display_name": "terraform"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment