commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
ac380d608d713cb9d8927200dd1a47899773c62f
catalogue_api/terraform/api_pins.tf
catalogue_api/terraform/api_pins.tf
locals { production_api = "remus" pinned_remus_api = "889fd8bd6c24f853d9b03053dbd8d1547758afc8" pinned_remus_nginx = "3dd8a423123e1d175dd44520fcf03435a5fc92c8" pinned_romulus_api = "" pinned_romulus_nginx = "" }
locals { production_api = "romulus" pinned_remus_api = "" pinned_remus_nginx = "" pinned_romulus_api = "5d753c10ca58846ca67df73dd9998771b700757b" pinned_romulus_nginx = "3dd8a423123e1d175dd44520fcf03435a5fc92c8" }
Switch the API to point at an up-to-date index
Switch the API to point at an up-to-date index
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
e9b8485aded2b6dc72398da5864d8a58776d7587
plans/updates_proxy.tf
plans/updates_proxy.tf
# # This terraform plan defines the resources necessary to host azure.updates.jenkins.io # updates-proxy.jenkins.io only contains htaccess files generated by https://github.com/jenkins-infra/update-center2/pull/224. # This service acts as a fallback updates.jenkins.io # resource "azurerm_resource_group" "updates-proxy...
Add azure file storage for the fallback update center
Add azure file storage for the fallback update center
HCL
mit
olblak/azure,olblak/azure,jenkins-infra/azure,olblak/azure
d188332100241257de5da741147e44c382c06964
terraform/modules/s3-bucket/main.tf
terraform/modules/s3-bucket/main.tf
resource "aws_s3_bucket" "s3_bucket" { bucket = "${var.bucket_name}" acl = "private" policy = <<EOF { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": {"AWS": "arn:aws:iam::${var.access_account_id}:root"}, "Action": "s3:PutObject", "Resource": "arn:aws:s3:::${var.buc...
resource "aws_s3_bucket" "s3_bucket" { bucket = "${var.bucket_name}" acl = "private" policy = <<EOF { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": {"AWS": "arn:aws:iam::${var.access_account_id}:root"}, "Action": "*", "Resource": "arn:aws:s3:::${var.bucket_name}/*...
Allow all s3 object operations
Allow all s3 object operations
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
523b5fa854629c1e21d2c3124974384d855953ff
gcp/modules/gpii-istio/network_policy.tf
gcp/modules/gpii-istio/network_policy.tf
resource "kubernetes_network_policy" "deny-default" { metadata { name = "deny-default" namespace = "${kubernetes_namespace.gpii.metadata.0.name}" } spec { pod_selector {} ingress {} policy_types = ["Ingress"] } }
resource "kubernetes_network_policy" "deny-default" { metadata { name = "deny-default" namespace = "${kubernetes_namespace.gpii.metadata.0.name}" } spec { pod_selector {} policy_types = ["Ingress"] } }
Fix default deny network policy
GPII-2865: Fix default deny network policy
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra
5dc4e860f87c99748ccaf307da86535bc1f7660b
fixtures/aws/outputs.tf
fixtures/aws/outputs.tf
output "vpc_id" { value = "${aws_vpc.test_vpc.id}" } output "vpc_tags" { value = "${aws_vpc.test_vpc.tags}" }
output "vpc_id" { value = "${aws_vpc.test_vpc.id}" } output "vpc_tag_name" { value = "${aws_vpc.test_vpc.tags.Name}" }
Use correct terraform map output syntax
Use correct terraform map output syntax
HCL
mit
amohemed/terraform-resource,amohemed/terraform-resource,ljfranklin/terraform-resource,ljfranklin/terraform-resource
b01873fd1c3e2234880b1b94d728a1acfb9bb958
reindexer/terraform/reindex_shard_generator/main.tf
reindexer/terraform/reindex_shard_generator/main.tf
module "shard_generator_lambda" { source = "git::https://github.com/wellcometrust/terraform.git//lambda?ref=v10.2.2" name = "reindex_shard_generator_${var.vhs_table_name}" s3_bucket = "${var.infra_bucket}" s3_key = "lambdas/reindexer/reindex_shard_generator.zip" description = "Generate reindexShards...
module "shard_generator_lambda" { source = "git::https://github.com/wellcometrust/terraform.git//lambda?ref=v10.2.2" name = "reindex_shard_generator_${var.vhs_table_name}" s3_bucket = "${var.infra_bucket}" s3_key = "lambdas/reindexer/reindex_shard_generator.zip" module_name = "reindex_shard_generato...
Add the module name to the reindex shard generator
Add the module name to the reindex shard generator
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
d8a76f2752e24f138dbe3d436623cf3040cf07dd
aws/auscors-sitelogs-terraform/main.tf
aws/auscors-sitelogs-terraform/main.tf
provider "aws" { region = "${var.region}" } data "terraform_remote_state" "state" { backend = "s3" config { bucket = "${var.tf_state_bucket}" lock_table = "${var.tf_state_table}" region = "${var.region}" key = "${var.application}/${var.environment}/terraform.tfstate" } } terrafo...
provider "aws" { region = "${var.region}" } data "terraform_remote_state" "state" { backend = "s3" config { bucket = "${var.tf_state_bucket}" lock_table = "${var.tf_state_table}" region = "${var.region}" key = "${var.application}/${var.environment}/terraform.tfstate" } } terrafo...
Add terraform module dependency: lambda -> iam
Add terraform module dependency: lambda -> iam
HCL
apache-2.0
GeoscienceAustralia/GeodesyMLConverter,GeoscienceAustralia/GeodesyMLConverter
f5d83fd0b700a6990ee4e4438f03b70d6449777c
examples/aws-rds/main.tf
examples/aws-rds/main.tf
resource "aws_db_instance" "default" { depends_on = "aws_security_group.default" identifier = "${var.identifier}" allocated_storage = "${var.storage}" engine = "${var.engine}" engine_version = "${lookup(var.engine_version, var.engine)}" instance_class = "${var.instance_class}" name = "${var.db_name}" us...
resource "aws_db_instance" "default" { depends_on = ["aws_security_group.default"] identifier = "${var.identifier}" allocated_storage = "${var.storage}" engine = "${var.engine}" engine_version = "${lookup(var.engine_version, var.engine)}" instance_class = "${var.instance_class}" name = "${var.db_name}" ...
Use [] around depends_on value.
Use [] around depends_on value.
HCL
mpl-2.0
nbaztec/terraform-provider-aws,ClementCunin/terraform-provider-aws,ashinohara/terraform-provider-aws,nbaztec/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,charles-at-geospock/terraform-provider-aws,nbaztec/terraform-provider-aws,terraform-providers/terraform-provider-a...
9491a32580a529fe357f8a66626ab2fc71c81609
modules/slo-pipeline/gcs.tf
modules/slo-pipeline/gcs.tf
/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Add dependency for storage bucket object
Add dependency for storage bucket object
HCL
apache-2.0
terraform-google-modules/terraform-google-slo
05c30498202a2fac389d370ba88293cf10381497
plans/bean.tf
plans/bean.tf
# This cluster is a bigger and will replace pea cluster resource "azurerm_resource_group" "bean" { name = "${var.prefix}bean" location = "${var.location}" tags { env = "${var.prefix}" } } resource "azurerm_storage_account" "bean" { name = "${azurerm_resource_group.bean.name}" re...
Add a new bigger k8s cluster
Add a new bigger k8s cluster
HCL
mit
olblak/azure,olblak/azure,jenkins-infra/azure,olblak/azure
610db0148a148cfb46be6e01b9764d290a20b48c
stages/01-privatecloud/vpc_firewall.tf
stages/01-privatecloud/vpc_firewall.tf
/** * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Add dependency in stage 01 for Syslog Firewall rule
Add dependency in stage 01 for Syslog Firewall rule
HCL
apache-2.0
GoogleCloudPlatform/gcve-iac-foundations,GoogleCloudPlatform/gcve-iac-foundations,GoogleCloudPlatform/gcve-iac-foundations
e1a5a72ac6fc3cb7966b2b5c6257f6174146f4c3
infra/gcp/terraform/k8s-infra-prow-build/external-ips.tf
infra/gcp/terraform/k8s-infra-prow-build/external-ips.tf
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
Remove external ip for greenhouse
Remove external ip for greenhouse Remove the Global IP address used to collect metrics from greenhouse. Metrics scraping was stopped with https://github.com/kubernetes/test-infra/pull/27606 Signed-off-by: Arnaud Meukam <96190fcd0798f0afa72279990e31ddc33e4f2ea2@gmail.com>
HCL
apache-2.0
kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io
8440bb6836caa78ef6fc5f78c8cb0e56bd85c448
templates/aws/template.tf
templates/aws/template.tf
resource "aws_eip" "monitoring_server_eip" { vpc = true instance = "${aws_instance.monitoring_server.id}" } resource "aws_security_group" "monitoring_security_group" { name = "MonitoringSecurityGroup" description = "Enable HTTP access via port 80, Zabbix-agent access" vpc_id = "${var.vpc_id}" ingress { ...
resource "aws_eip" "monitoring_server_eip" { vpc = true instance = "${aws_instance.monitoring_server.id}" } resource "aws_security_group" "monitoring_security_group" { name = "MonitoringSecurityGroup" description = "Enable HTTP access via port 80, Zabbix-agent access" vpc_id = "${var.vpc_id}" ingress { ...
Use Elastic IP instead of auto assigned public IP
Use Elastic IP instead of auto assigned public IP
HCL
apache-2.0
cloudconductor-patterns/zabbix_pattern,cloudconductor-patterns/zabbix_pattern,cloudconductor-patterns/zabbix_pattern,cloudconductor-patterns/zabbix_pattern
66e4a95e629dc90359538f4db9a85392c1feba70
plans/control-plane.tf
plans/control-plane.tf
# This Terraform plan is responsible for the Code Valet control plane # # As described (loosely) in the README, the control plane is where the bits # which are actually servicing codevalet.io would be running. THese would be # considered "trusted" resources and not those running user-generated code. resource "azurerm_...
# This Terraform plan is responsible for the Code Valet control plane # # As described (loosely) in the README, the control plane is where the bits # which are actually servicing codevalet.io would be running. THese would be # considered "trusted" resources and not those running user-generated code. resource "azurerm_...
Remove the Azure Container Service since we're using AKS in the CloudBees account
Remove the Azure Container Service since we're using AKS in the CloudBees account
HCL
agpl-3.0
CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet
3ce90bff9b2edc4c6fbeefe2221417f1315acc26
sierra_adapter/terraform/sierra_reader/queues.tf
sierra_adapter/terraform/sierra_reader/queues.tf
module "windows_queue" { source = "git::https://github.com/wellcometrust/terraform.git//sqs?ref=v6.4.0" queue_name = "sierra_${var.resource_type}_windows" aws_region = "${var.aws_region}" account_id = "${var.account_id}" topic_names = ["${var.windows_topic_name}"] # Ensure that messages are spread ...
module "windows_queue" { source = "git::https://github.com/wellcometrust/terraform.git//sqs?ref=v6.4.0" queue_name = "sierra_${var.resource_type}_windows" aws_region = "${var.aws_region}" account_id = "${var.account_id}" topic_names = ["${var.windows_topic_name}"] # Ensure that messages are spread ...
Increase retries in the sierra_reader
Increase retries in the sierra_reader
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
12fa4547706c22a839ecf8af37970b6988c9d27f
examples/simple_project/main.tf
examples/simple_project/main.tf
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Remove secondary range from simple example
Remove secondary range from simple example
HCL
apache-2.0
terraform-google-modules/terraform-google-network,terraform-google-modules/terraform-google-network
3e934d24ab873634d1f91ce11e05d115ec7bbc6f
modules/rules/variables.tf
modules/rules/variables.tf
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Remove dead `paths` variable in rules submodule
Remove dead `paths` variable in rules submodule
HCL
apache-2.0
forseti-security/terraform-google-forseti,forseti-security/terraform-google-forseti,forseti-security/terraform-google-forseti
722ff569f9a50e150e03ce9df183a42be582fb32
terraform/variables.tf
terraform/variables.tf
variable "aws_region" { description = "The AWS region to create things in." default = "eu-west-1" } variable "az_count" { description = "Number of AZs to cover in a given AWS region" default = "2" } variable "key_name" { description = "Name of AWS key pair" } variable "admin_cidr_ingress" { descr...
variable "aws_region" { description = "The AWS region to create things in." default = "eu-west-1" } variable "az_count" { description = "Number of AZs to cover in a given AWS region" default = "2" } variable "key_name" { description = "Name of AWS key pair" } variable "admin_cidr_ingress" { descr...
Remove release-id variable as it's not used anymore
Remove release-id variable as it's not used anymore
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
86612ea95d21397086d51616c44a67b489cfa059
main.tf
main.tf
# -*- coding: utf-8; mode: terraform; -*- provider "aws" { # https://www.terraform.io/docs/providers/aws/index.html version = "~> 1" region = var.starterkit_region }
# -*- coding: utf-8; mode: terraform; -*- provider "aws" { # https://www.terraform.io/docs/providers/aws/index.html version = "~> 2" region = var.starterkit_region }
Switch to latest v2 AWS provider.
Switch to latest v2 AWS provider.
HCL
unlicense
carrete/terraform-aws-starterkit-mirror
e4cc3874377ca71dae19735c10fbd0168a733f51
loris/terraform/variables.tf
loris/terraform/variables.tf
variable "aws_region" { description = "The AWS region to create things in." default = "eu-west-1" } variable "iiif_acm_cert_arn" { description = "ARN of ACM cert for iiif API (in us-east-1) for CloudFront" } variable "release_ids" { description = "Release tags for platform apps" type = "map" } v...
variable "aws_region" { description = "The AWS region to create things in." default = "eu-west-1" } # We can't look up the ARN of our IIIF ACM certificate using the Terraform # data providers because most of our infrastructure runs in eu-west-1, but # the certificate for CloudFront has to live in us-east-1. # ...
Add an essay comment about why CloudFront/ACM regions are terrible
Add an essay comment about why CloudFront/ACM regions are terrible
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
5492c508c277a9604b5323ed743f25b790fae863
terraform/stage/github.tf
terraform/stage/github.tf
provider "github" { token = "${var.github_token}" organization = "${var.github_organization}" } resource "github_repository" "ansible_role_mongodb" { name = "ansible-role-mongodb" description = "Ansible Role for MongoDB (https://www.mongodb.com)" has_issues = true allow_...
provider "github" { token = "${var.github_token}" organization = "${var.github_organization}" } resource "github_repository" "ansible_role_mongodb" { name = "ansible-role-mongodb" description = "Ansible Role for MongoDB (https://www.mongodb.com)" has_issues = true allow_...
Add ansible-role-reddit-app repository to terraform config
Add ansible-role-reddit-app repository to terraform config
HCL
mit
jugatsu/infra,jugatsu/infra
1429e5ba5a17b94558ae83ac7cc32486027d50cc
terraform/aws/templates/ssl_certificate.tf
terraform/aws/templates/ssl_certificate.tf
variable "ssl_certificate" { type = "string" } variable "ssl_certificate_chain" { type = "string" } variable "ssl_certificate_private_key" { type = "string" } resource "aws_iam_server_certificate" "lb_cert" { name_prefix = "${var.short_env_id}" certificate_body = "${var.ssl_certificate}" certificate_ch...
variable "ssl_certificate" { type = "string" } variable "ssl_certificate_chain" { type = "string" } variable "ssl_certificate_private_key" { type = "string" } resource "aws_iam_server_certificate" "lb_cert" { name_prefix = "${var.short_env_id}" certificate_body = "${var.ssl_certificate}" certificate_ch...
Correct aws ssl cert tags change.
Correct aws ssl cert tags change.
HCL
apache-2.0
pivotal-cf-experimental/bosh-bootloader,pivotal-cf-experimental/bosh-bootloader
ea6c297e3c43de46181824ffb992e0df678871dc
catalogue_pipeline/terraform/dynamo_matcher.tf
catalogue_pipeline/terraform/dynamo_matcher.tf
resource "aws_dynamodb_table" "matcher_graph_table" { name = "works-graph" read_capacity = 1 write_capacity = 1 hash_key = "workId" attribute { name = "id" type = "S" } attribute { name = "componentId" type = "S" } global_secondary_index { name = "${v...
resource "aws_dynamodb_table" "matcher_graph_table" { name = "works-graph" read_capacity = 1 write_capacity = 1 hash_key = "id" attribute { name = "id" type = "S" } attribute { name = "componentId" type = "S" } global_secondary_index { name = "${var.m...
Fix the matcher DynamoDB tf definition
Fix the matcher DynamoDB tf definition [skip ci]
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
178eae019e7f2e961103fe3554717dce92cfeccb
bootstrap/provision/terraform/genotyper/vars.tf
bootstrap/provision/terraform/genotyper/vars.tf
variable "user_name" { default="CHANGE_ME" } variable "password" { default="CHANGE_ME" } variable "tenant_name" { default="germline" } variable "auth_url" { } variable "key_pair" { default="germline" } variable "salt_master_ip" { } variable "image_id" { default = "bb52db82-617a-4b88-b7a0-cb7f61f03d96" } var...
variable "user_name" { default="CHANGE_ME" } variable "password" { default="CHANGE_ME" } variable "tenant_name" { default="germline" } variable "auth_url" { } variable "key_pair" { default="germline" } variable "salt_master_ip" { } variable "image_id" { default = "66d3080b-bea2-4982-a443-fb9eb18f6122" } var...
Update genotyper script to point to the new image that includes the genome reference on the root partition.
Update genotyper script to point to the new image that includes the genome reference on the root partition.
HCL
mit
llevar/germline-regenotyper,llevar/germline-regenotyper
c8fadca0a10006f89beac4093eaeef68c8f67453
gke/gke.tf
gke/gke.tf
provider "google" {} terraform { backend "s3" { bucket = "aws" key = "aws" region = "ap-southeast-2" } }
provider "google" {}
Remove Default S3 Backend Conf GKE
Remove Default S3 Backend Conf GKE
HCL
apache-2.0
cncf/cross-cloud
5c81d5f389dc95a2021240f2d0c065bd9369f91e
test/fixtures/real_time_enforcer/variables.tf
test/fixtures/real_time_enforcer/variables.tf
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Remove unused var.instance_metadata from fixture
Remove unused var.instance_metadata from fixture
HCL
apache-2.0
forseti-security/terraform-google-forseti,forseti-security/terraform-google-forseti,forseti-security/terraform-google-forseti
a318c143b98b1f6cb7d374c9a14401dc76d37ea4
aws/cert.tf
aws/cert.tf
# Gen Certs resource "null_resource" "ssl_gen" { provisioner "local-exec" { command = <<EOF ${ path.module }/init-cfssl \ ${ var.data_dir }/.cfssl \ ${ var.aws_region } \ ${ var.internal_tld } \ ${ var.k8s_service_ip } EOF } provisioner "local-exec" { when = "destroy" on_failure = "continue" com...
# Gen Certs resource "null_resource" "ssl_gen" { provisioner "local-exec" { command = <<EOF ${ path.module }/init-cfssl \ ${ var.data_dir }/.cfssl \ ${ var.aws_region } \ ${ var.internal_tld } \ ${ var.k8s_service_ip } EOF } resource "null_resource" "dummy_dependency" { depends_on = [ "null_resource.ssl_gen...
Destroy is now Done in Cleanup.tf
Destroy is now Done in Cleanup.tf
HCL
apache-2.0
cncf/demo,cncf/demo,cncf/demo,cncf/demo
7dca3d662e3afb2c328cfc70d28db1e0f8b146c5
eucentral1-demo/mesos.tf
eucentral1-demo/mesos.tf
module "mesos" { source = "github.com/bobtfish/tf_aws_mesos" masters = "3" slaves = "5" region = "${var.region}" admin_key_name = "${terraform_remote_state.vpc.output.admin_key_name}" # az = "${terraform_remote_state.vpc.output.primary...
module "mesos" { source = "github.com/bobtfish/tf_aws_mesos" masters = "3" slaves = "5" region = "${var.region}" admin_key_name = "${terraform_remote_state.vpc.output.admin_key_name}" # az = "${terraform_remote_state.vpc.output.primary...
Move all the machines to a different subnet
Move all the machines to a different subnet
HCL
apache-2.0
bobtfish/terraform-example-mesos-cluster
f65ff2d0f5d7415d2e685be889c618099cfd36a2
gce.tf
gce.tf
provider "google" {} module "gce_org_prod_workers" { source = "github.com/travis-infrastructure/tf_gce_travis_worker" instance_count = 1 site = "org" environment = "prod" image = "${var.travis_worker_image}" } module "gce_org_staging_workers" { source = "github.com/travis-infrastructure/tf_gce_travis_work...
provider "google" {} module "gce_org_prod_workers" { source = "github.com/travis-infrastructure/tf_gce_travis_worker" instance_count = 3 site = "org" environment = "prod" image = "${var.travis_worker_image}" } module "gce_org_staging_workers" { source = "github.com/travis-infrastructure/tf_gce_travis_work...
Bump GCE prod server count from 1 to 3
Bump GCE prod server count from 1 to 3 both to increase headroom and add some redundancy
HCL
mit
travis-infrastructure/terraform-stuff,travis-infrastructure/terraform-stuff
2e63d7204386e0ea15010336b183b952278870e1
terraform/stage/github.tf
terraform/stage/github.tf
provider "github" { token = "${var.github_token}" organization = "${var.github_organization}" } resource "github_repository" "ansible_role_mongodb" { name = "ansible-role-mongodb" description = "Ansible Role for MongoDB (https://www.mongodb.com)" has_issues = true allow_rebase_merge = false ...
provider "github" { token = "${var.github_token}" organization = "${var.github_organization}" } resource "github_repository" "ansible_role_mongodb" { name = "ansible-role-mongodb" description = "Ansible Role for MongoDB (https://www.mongodb.com)" has_issues = true allow_...
Add ansible-role-ruby repository to terraform config
Add ansible-role-ruby repository to terraform config
HCL
mit
jugatsu/infra,jugatsu/infra
34db1330ccfd4da1397653e27fbf2933099f10b5
infrastructure/cloud/qa/vpc.tf
infrastructure/cloud/qa/vpc.tf
resource "aws_vpc" "qa" { cidr_block = "10.101.0.0/16" tags { Name = "FacetQaVpc" CreatedBy = "Terraform" Contact = "${var.contact_info}" } }
resource "aws_vpc" "qa" { cidr_block = "10.101.0.0/16" tags { Name = "FacetQaVpc" CreatedBy = "Terraform" Contact = "${var.contact_info}" Supports = "FACET" } }
Add support tag to VPC
Add support tag to VPC
HCL
bsd-3-clause
facet-acq/post-award,facet-acq/post-award,djfurman/post-award,djfurman/post-award
4ce2647414fc662966b8c155b3ee47f9591387a4
terraform/gcp_variables.tf
terraform/gcp_variables.tf
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
Fix Terraform warnings: Quoted type constraints are deprecated
Fix Terraform warnings: Quoted type constraints are deprecated
HCL
apache-2.0
GoogleCloudPlatform/autonetdeploy-startup,GoogleCloudPlatform/autonetdeploy-startup
15dd4edca604b6c27adba817666b0a2ddf2fb259
terraform/accounts/development/cloudwatch.tf
terraform/accounts/development/cloudwatch.tf
module "gds-audit-cloudtrail" { source = "../../modules/cloudtrail/cloudtrail" trail_name = "digitalmarketplace-gds-audit-cloudtrail" s3_bucket_name = "gds-audit-cloudtrails" // This is currently the name of the RE bucket being used to log GDS sub accounts s3_buck...
Add couldtrail to development account
Add couldtrail to development account
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
be08a68f91c36e321d387b2a46836d1c93ddd446
gcp/modules/cert-manager/main.tf
gcp/modules/cert-manager/main.tf
terraform { backend "gcs" {} } variable "nonce" {} variable "secrets_dir" {} variable "charts_dir" {} module "cert-manager" { source = "/exekube-modules/helm-release" tiller_namespace = "kube-system" client_auth = "${var.secrets_dir}/kube-system/helm-tls" release_name = "cert-manager" ...
terraform { backend "gcs" {} } variable "nonce" {} variable "secrets_dir" {} variable "charts_dir" {} variable "project_id" {} variable "serviceaccount_key" {} provider "google" { project = "${var.project_id}" credentials = "${var.serviceaccount_key}" } module "cert-manager" { source = "/exekub...
Fix reverted dns change - stuck state
Fix reverted dns change - stuck state
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra
17201b08475539d2126b8e2b1c56093d5e4c1578
terraform.tf
terraform.tf
provider "aws" { region = "us-east-1" } variable "host" { default = "til" } variable "domain" { default = "justincampbell.me" } variable "bucket" { default = "til.justincampbell.me" } resource "dnsimple_record" "til" { domain = "${var.domain}" name = "${var.host}" type = "CNAME" value = "${aws_...
provider "aws" { region = "us-east-1" } variable "host" { default = "til" } variable "domain" { default = "justincampbell.me" } variable "bucket" { default = "til.justincampbell.me" } resource "dnsimple_record" "til" { domain = "${var.domain}" name = "${var.host}" type = "CNAME" value = "${aws_...
Use template_file.template instead of filename
Use template_file.template instead of filename
HCL
mit
justincampbell/til,justincampbell/til
6f607c74d0f897402f320656d3a4acbe1ef0fcf8
infra/gcp/terraform/kubernetes-public/k8s-kettle.tf
infra/gcp/terraform/kubernetes-public/k8s-kettle.tf
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
Add BigQuery dataset for kettle
kubernetes-public: Add BigQuery dataset for kettle Ref: https://github.com/kubernetes/k8s.io/issues/787 Add BQ dataset that will be use to store data created Kettle Signed-off-by: Arnaud Meukam <96190fcd0798f0afa72279990e31ddc33e4f2ea2@gmail.com>
HCL
apache-2.0
kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io
1ba9aff6d8be5b122d6c6e56aea878cd7f41dd42
nubis/terraform/main.tf
nubis/terraform/main.tf
module "worker" { source = "github.com/nubisproject/nubis-terraform//worker?ref=master" region = "${var.region}" environment = "${var.environment}" account = "${var.account}" service_name = "${var.service_name}" purpose = "webserver" ami = "${var.ami}" elb = "${m...
module "worker" { source = "github.com/nubisproject/nubis-terraform//worker?ref=v1.3.0" region = "${var.region}" environment = "${var.environment}" account = "${var.account}" service_name = "${var.service_name}" purpose = "webserver" ami = "${var.ami}" elb = "${m...
Use newly released nubis-terraform v1.3.0
Use newly released nubis-terraform v1.3.0
HCL
mpl-2.0
mozilla-it/nubis-planet-mozilla-org,mozilla-it/nubis-planet-mozilla-org
4924bd22aea578944726cce9ebcc781b2c179907
variables.tf
variables.tf
variable "vpc_id" { } variable "vpc_cidr_block" { } variable "allocated_storage" { default = "32" } variable "engine_version" { default = "9.4.4" } variable "instance_type" { default = "t2.micro" } variable "storage_type" { default = "gp2" } variable "database_name" { } variable "database_password" { } variabl...
variable "vpc_id" { } variable "vpc_cidr_block" { } variable "allocated_storage" { default = "32" } variable "engine_version" { default = "9.4.4" } variable "instance_type" { default = "db.t2.micro" } variable "storage_type" { default = "gp2" } variable "database_name" { } variable "database_password" { } vari...
Fix default RDS instance type
Fix default RDS instance type Default instance type for RDS must me a member of the `db` class. Attempts to resolve #1.
HCL
apache-2.0
azavea/terraform-aws-postgresql-rds
c9b0ec51a3c916fce65f9ee3d4e5a972bac37bda
terraform/modules/jenkins/ec2.tf
terraform/modules/jenkins/ec2.tf
provider "aws" { region = "eu-west-1" } resource "aws_instance" "jenkins2" { ami = "ami-785db401" instance_type = "t2.large" iam_instance_profile = "${aws_iam_instance_profile.jenkins.name}" key_name = "${aws_key_pair.jenkins2_2.key_name}" vpc_security_group_ids ...
provider "aws" { region = "eu-west-1" } resource "aws_instance" "jenkins2" { ami = "ami-785db401" instance_type = "t2.large" iam_instance_profile = "${aws_iam_instance_profile.jenkins.name}" key_name = "${aws_key_pair.jenkins.key_name}" vpc_security_group_ids = "...
Rename key pair which is now the normal jenkins key pair.
Rename key pair which is now the normal jenkins key pair.
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
5aadf3cd234483a3b131025abde349fdb4ce4be5
terraform/aws-public/elb.tf
terraform/aws-public/elb.tf
resource "aws_elb" "web" { name = "apollo-elb" subnets = ["${aws_subnet.public.id}"] listener { instance_port = 80 instance_protocol = "tcp" lb_port = 80 lb_protocol = "tcp" } health_check { healthy_threshold = 2 unhealthy_threshold = 2 timeout ...
resource "aws_elb" "web" { name = "apollo-elb" subnets = ["${aws_subnet.public.id}"] listener { instance_port = 80 instance_protocol = "http" lb_port = 80 lb_protocol = "http" } health_check { healthy_threshold = 2 unhealthy_threshold = 2 timeout ...
Revert instance protocol to http for now
Revert instance protocol to http for now
HCL
mit
mehulsbhatt/Apollo,mehulsbhatt/Apollo,siliconmeadow/Apollo,atsaki/Apollo,enxebre/Apollo,phungmanhcuong/Appolo,Capgemini/Apollo,phungmanhcuong/Appolo,enxebre/Apollo,ravbaba/Apollo,siliconmeadow/Apollo,Capgemini/Apollo,Capgemini/Apollo,ravbaba/Apollo,atsaki/Apollo
aff861e8b0fe39a21e5e2061a9cf806815b34a2e
gcp/modules/gpii-istio/network_policy.tf
gcp/modules/gpii-istio/network_policy.tf
resource "kubernetes_network_policy" "deny-default" { metadata { name = "deny-default" namespace = "${kubernetes_namespace.gpii.metadata.0.name}" } spec { pod_selector {} ingress {} policy_types = ["Ingress"] } }
Add default deny network policy for GPII namespace
GPII-2865: Add default deny network policy for GPII namespace
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra
1cd37836bb125ed63c005ed72806e564795140d4
gcp/modules/gcp-stackdriver-monitoring/uptime_checks.tf
gcp/modules/gcp-stackdriver-monitoring/uptime_checks.tf
locals { uptime_checks = ["flowmanager", "preferences"] } resource "google_monitoring_uptime_check_config" "this" { count = "${length(local.uptime_checks)}" provider = "google-beta" display_name = "${element(local.uptime_checks, count.index)}-https" timeout = "10s" period = "60s" h...
Move uptime checks to TF and https
GPII-3669,GPII-3687: Move uptime checks to TF and https
HCL
bsd-3-clause
mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra
87faba572e1edbdf519f909319c7696731745927
bluemix/bluemix.tf
bluemix/bluemix.tf
provider "ibm" {} resource "ibm_space" "space" { name = "${ var.name }" org = "${ var.org }" } data "ibm_org" "orgdata" { org = "${var.org}" } data "ibm_account" "accountData" { org_guid = "${data.ibm_org.orgdata.id}" } resource "ibm_container_cluster" "testacc_cluster" { name = ...
provider "ibm" {} resource "ibm_space" "space" { name = "${ var.name }" org = "${ var.org }" } data "ibm_org" "orgdata" { org = "${var.org}" } data "ibm_account" "accountData" { org_guid = "${data.ibm_org.orgdata.id}" } data "ibm_network_vlan" "vlan_public" { name = "public" } data "ibm_ne...
Use Data Sources for Vlans
Use Data Sources for Vlans
HCL
apache-2.0
cncf/cross-cloud
2fecfb70fe287b1a241dbd4d352fa71b5cd8c262
terraform/datadog/dns.tf
terraform/datadog/dns.tf
resource "datadog_monitor" "dns_can_resolve" { name = "${format("%s DNS resolution working", var.env)}" type = "service check" message = "${format("DNS resolution is failing on {{host.name}} @govpaas-alerting-%s@digital.cabinet-office.gov.uk", var.aws_account)}" query = "${format("'dns.can_resolve'.over(...
resource "datadog_monitor" "dns_can_resolve" { name = "${format("%s DNS resolution working", var.env)}" type = "service check" message = "${format("DNS resolution is failing on {{host.name}} @govpaas-alerting-%s@digital.cabinet-office.gov.uk", var.aws_account)}" query = "${format("'dns.can_resolve'.over(...
Disable email notifications for DNS response time Datadog monitor
Disable email notifications for DNS response time Datadog monitor We know this monitor alerts a lot, so we temporarily disable email notifications until we fix the monitor.
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
5ae3eef49566383de418033be8f77b4568ca3af5
terraform/accounts/main/route53.tf
terraform/accounts/main/route53.tf
resource "aws_route53_zone" "marketplace_team" { name = "marketplace.team" } resource "aws_route53_record" "preview_ns" { zone_id = "${aws_route53_zone.marketplace_team.zone_id}" name = "preview.marketplace.team" type = "NS" ttl = "3600" records = [ "ns-389.awsdns-48.com", "ns-2018.awsdns-60.co.uk"...
resource "aws_route53_zone" "marketplace_team" { name = "marketplace.team" } resource "aws_route53_record" "preview_ns" { zone_id = "${aws_route53_zone.marketplace_team.zone_id}" name = "preview.marketplace.team" type = "NS" ttl = "3600" records = [ "ns-389.awsdns-48.com", "ns-2018.awsdns-60.co.uk"...
Add staging NS records delegation to the main account DNS
Add staging NS records delegation to the main account DNS
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
6132b3bbd5231a50aae4b27dc246b126b5de0740
reindexer/terraform/lambda_reindex_shard_generator.tf
reindexer/terraform/lambda_reindex_shard_generator.tf
module "sourcedata_reindex_shard_generator" { source = "reindex_shard_generator" vhs_table_name = "${local.vhs_sourcedata_table_name}" vhs_table_stream_arn = "${local.vhs_sourcedata_table_stream_arn}" vhs_table_update_policy = "${local.vhs_sourcedata_dynamodb_update_policy}" infra_bucket ...
module "sourcedata_reindex_shard_generator" { source = "reindex_shard_generator" vhs_table_name = "${local.vhs_sourcedata_table_name}" vhs_table_stream_arn = "${local.vhs_sourcedata_table_stream_arn}" vhs_table_update_policy = "${local.vhs_sourcedata_dynamodb_update_policy}" infra_bucket ...
Create a reindex shard generator for the Sierra table
Create a reindex shard generator for the Sierra table
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
cb96e1d0f4662fb8595dedd6865fa747c8e37d08
azure/modules/vpc/azure-security.tf
azure/modules/vpc/azure-security.tf
resource "azurerm_network_security_group" "cncf" { name = "${ var.name }" location = "${ var.location }" resource_group_name = "${ var.name }" }
Add Temp Security Group to fix K8s API Server BUG
Add Temp Security Group to fix K8s API Server BUG
HCL
apache-2.0
cncf/demo,cncf/demo,cncf/demo,cncf/demo
18d0a11e495afb8424fece2a469f4e031cfd6b25
infra/gcp/clusters/kubernetes-public/aaa/11-pool2-configuration.tf
infra/gcp/clusters/kubernetes-public/aaa/11-pool2-configuration.tf
/* This file defines: - Node pool for pool2 Note: If you wish to create additional node pools, please duplicate this file and change the resource name, name_prefix, and any other cluster specific settings. */ resource "google_container_node_pool" "pool2" { name_prefix = "pool2-" location = google_container_clu...
Add a nodepool with bigger nodes
Add a nodepool with bigger nodes Perf-dash needs more memory than existing nodes could offer.
HCL
apache-2.0
thockin/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,thockin/k8s.io,thockin/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,thockin/k8s.io
ea5a647d350be97ebe59aaec789794aa70c469f2
terraform/datadog/cloud_controller.tf
terraform/datadog/cloud_controller.tf
resource "datadog_monitor" "cc_api_master_process_running" { name = "${format("%s Cloud Controller API master process running", var.env)}" type = "service check" message = "Cloud Controller API master process is not running. Check deployment state." escalation_message ...
Add datadog monitors for Cloud Controller process
Add datadog monitors for Cloud Controller process Add datadog monitors for the Cloud Controller API main process and workers, and the HTTP endpoint.
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
9ddc6504665f6e7d6c606fc8d8ddeec8dc766326
gcp/modules/gke-network/main.tf
gcp/modules/gke-network/main.tf
# ------------------------------------------------------------------------------ # Terraform & Provider Config # ------------------------------------------------------------------------------ terraform { backend "gcs" {} } # ------------------------------------------------------------------------------ # Input vari...
# ------------------------------------------------------------------------------ # Terraform & Provider Config # ------------------------------------------------------------------------------ terraform { backend "gcs" {} } provider "google" { project = "${var.project_id}" credentials = "${var.serviceaccount...
Fix missing provider config block
GPII-3952: Fix missing provider config block
HCL
bsd-3-clause
mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra
3bc716bf690a483a6d966b05e373816dde8c092a
terraform/concourse/security_group.tf
terraform/concourse/security_group.tf
resource "aws_security_group" "concourse" { name = "${var.env}-concourse" description = "Concourse security group" vpc_id = "${var.vpc_id}" egress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } ingress { from_port = 8080 to_port = 8080 prot...
resource "aws_security_group" "concourse" { name = "${var.env}-concourse" description = "Concourse security group" vpc_id = "${var.vpc_id}" egress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } ingress { from_port = 8080 to_port = 8080 prot...
Fix tag on Concourse security group
Fix tag on Concourse security group
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf
bfa4b54a0e73bcc8467d4a8290366d2a2e6fd85d
dns-etcd/input.tf
dns-etcd/input.tf
variable "name" {} variable "etcd_server" {} variable "discovery_nameserver" {} variable "upstream_dns" {} variable "cloud_provider" {} variable "master_ips" {} variable "public_master_ips" {} variable "worker_ips" {} variable "master_node_count" {} variable "worker_node_count" {}
variable "name" {} variable "etcd_server" {} variable "discovery_nameserver" {} variable "upstream_dns" {} variable "cloud_provider" {} variable "master_ips" {} variable "public_master_ips" {} variable "public_worker_ips" { default = "null" } variable "worker_ips" {} variable "master_node_count" {} variable "worker_nod...
Add default so dns-etcd will still work when public_worker_ips is not set
Add default so dns-etcd will still work when public_worker_ips is not set
HCL
apache-2.0
cncf/cross-cloud
2ccb1761b3dc2988d4424c589db4d9514fef9a23
infrastructure/backend_iam.tf
infrastructure/backend_iam.tf
resource "aws_iam_user" "backend" { name = "${terraform.workspace}-backend" } resource "aws_iam_access_key" "backend" { user = "${aws_iam_user.backend.name}" } resource "aws_iam_user_policy" "backend" { name = "${terraform.workspace}-backend-media-s3" user = "${aws_iam_user.backend.name}" policy = <<EOF { ...
resource "aws_iam_user" "backend" { name = "${terraform.workspace}-backend" } resource "aws_iam_access_key" "backend" { user = "${aws_iam_user.backend.name}" } resource "aws_iam_user_policy" "backend" { name = "${terraform.workspace}-backend-media-s3" user = "${aws_iam_user.backend.name}" policy = <<EOF { ...
Add pinpoint roles to backend iam
Add pinpoint roles to backend iam
HCL
mit
patrick91/pycon,patrick91/pycon
ba57de5efdeafd629bf18f92c435efff865bd643
modules/libvirt/base/variables.tf
modules/libvirt/base/variables.tf
variable "cc_username" { description = "username for the Customer Center" type = "string" } variable "cc_password" { description = "password for the Customer Center" type = "string" } variable "timezone" { description = "Timezone setting for all VMs" default = "CET" } variable "package_mirror" { descri...
variable "cc_username" { description = "username for the Customer Center" type = "string" } variable "cc_password" { description = "password for the Customer Center" type = "string" } variable "timezone" { description = "Timezone setting for all VMs" default = "Europe/Berlin" } variable "package_mirror" ...
Use Europe/Berlin by default, so that DST switching is automatic
Use Europe/Berlin by default, so that DST switching is automatic
HCL
bsd-3-clause
MalloZup/sumaform,moio/sumaform,MalloZup/sumaform,moio/sumaform,MalloZup/sumaform,moio/sumaform,MalloZup/sumaform
0252dba2e3db573fa321cc849559a828869d6f38
iam.tf
iam.tf
resource "aws_iam_instance_profile" "minecraft" { name = "minecraft" roles = ["${aws_iam_role.role.name}"] } resource "aws_iam_role" "role" { name = "assume_role" path = "/" assume_role_policy = <<EOF { "Version": "2008-10-17", "Statement": [ { "Action": "sts:AssumeRole"...
resource "aws_iam_instance_profile" "minecraft" { name = "minecraft" roles = ["${aws_iam_role.role.name}"] } resource "aws_iam_role" "role" { name = "minecraft" path = "/" assume_role_policy = <<EOF { "Version": "2008-10-17", "Statement": [ { "Action": "sts:AssumeRole", ...
Fix things about the role/policy
Fix things about the role/policy
HCL
apache-2.0
bobtfish/terracraft
bc1209b978b539c5b0f5de1e9ff967bf82690925
terraform/variables.tf
terraform/variables.tf
variable "key_pair"{ type = "string" default = "sochor" } variable "ami" { type = "string" default = "ami-e9c0e18c" } variable "spot_price" { type = "string" default = "0.40" } variable "profile" { type = "string" default = "Modeler" } variable "subnet" { type = "string" default = "subnet-6347d50a" } # T...
variable "key_pair"{ type = "string" default = "sochor" } variable "ami" { type = "string" default = "ami-e9c0e18c" } variable "spot_price" { type = "string" default = "3.5" } variable "profile" { type = "string" default = "Modeler" } variable "subnet" { type = "string" default = "subnet-63bd1818" } # Th...
Move up to p2.8x instance
Move up to p2.8x instance
HCL
mit
matthew-sochor/trail-cam-detector,matthew-sochor/trail-cam-detector
44c8a426ac82083f2d01d8b82cee9dbec7a1fce6
terraform/main.tf
terraform/main.tf
provider "google" { project = "infra-179717" region = "europe-west1" } resource "google_compute_instance" "app" { name = "reddit-app" machine_type = "g1-small" zone = "europe-west1-b" # определение загрузочного диска boot_disk { initialize_params { image = "reddit-base-3...
provider "google" { project = "infra-179717" region = "europe-west1" } resource "google_compute_instance" "app" { name = "reddit-app" machine_type = "g1-small" zone = "europe-west1-b" # определение загрузочного диска boot_disk { initialize_params { image = "reddit-base-3...
Add public key to metadata
Add public key to metadata
HCL
mit
DmitriySh/infra,DmitriySh/infra,DmitriySh/infra
07373247ca7da53863ab48c999cb9dc2d36a5ea3
plans/variables.tf
plans/variables.tf
# # Variables for plugging in various environment specific settings # variable "env" { type = "string" default = "dev" } variable "dnsprefix" { type = "string" default = "" } variable "region" { type = "string" default = "West US" } # # Variables which should be kept secret # and provided b...
# # Variables for plugging in various environment specific settings # variable "env" { type = "string" default = "dev" } variable "dnsprefix" { type = "string" default = "" } variable "region" { type = "string" default = "West US" } # # Variables which should be kept secret # and provided b...
Add some Terraform variable defaults to ensure Terraform can run in CI
Add some Terraform variable defaults to ensure Terraform can run in CI
HCL
agpl-3.0
CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet
7d4b8db6c1ce35e03d05f83af694269ee3e8f551
sierra_adapter/terraform/dynamo.tf
sierra_adapter/terraform/dynamo.tf
resource "aws_dynamodb_table" "sierradata_table" { name = "SierraData_Merged" read_capacity = 1 write_capacity = 1 hash_key = "id" stream_enabled = true stream_view_type = "NEW_AND_OLD_IMAGES" attribute { name = "id" type = "S" } lifecycle { prevent_destroy = t...
resource "aws_dynamodb_table" "sierradata_table" { name = "SierraData_Merged" read_capacity = 1 write_capacity = 1 hash_key = "id" stream_enabled = true stream_view_type = "NEW_AND_OLD_IMAGES" attribute { name = "id" type = "S" } lifecycle { prevent_destroy = true ...
Add some format errors for Travis to whinge about
Add some format errors for Travis to whinge about
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
b6cfa1fedfd07ddeec6ea382ad6643e549e5f22f
docs/tutorials/multinode/terraform/main.tf
docs/tutorials/multinode/terraform/main.tf
variable "project" { type=string } variable "zone" { type=string } variable "cluster_name" { type = string default = "c" description = "Name used to prefix resources in cluster." } module "htcondor" { source = "./htcondor/" cluster_name = var.cluster_name project = var.project zone = var.zone os...
variable "project" { type=string } variable "zone" { type=string } variable "cluster_name" { type = string default = "c" description = "Name used to prefix resources in cluster." } module "htcondor" { source = "./htcondor/" cluster_name = var.cluster_name project = var.project zone = var.zone os...
Set min num nodes to 0
Set min num nodes to 0
HCL
apache-2.0
quantumlib/qsim,quantumlib/qsim,quantumlib/qsim,quantumlib/qsim
4cd69ae6a5c82187aef1f4f4ad0aefb01e1cef83
terraform/az-management/main.tf
terraform/az-management/main.tf
provider "aws" { region = var.region } data "aws_subnet_ids" "selected" { vpc_id = var.vpc_id filter { name = "availability-zone" values = [var.az] } } resource "aws_network_acl" "disable_az" { vpc_id = var.vpc_id # We will be relying on the default DENY ALL rule provided by AWS. tags = { ...
provider "aws" { region = var.region } data "aws_subnet_ids" "selected" { vpc_id = var.vpc_id filter { name = "availability-zone" values = [var.az] } } data "aws_subnet" "infra_subnet" { vpc_id = var.vpc_id filter { name = "tag:Name" # The wildcard covers the deploy env, # but the V...
Exclude infra subnets from AZ disabling
Exclude infra subnets from AZ disabling The infra subnet hosts all of our Bosh and Concourse related VMs and databases. Usually, this is zone A, but the Concourse database lives in a random AZ within the region. Disabling the AZ in which Concourse's database lives (when that's different from the VMs) forces Concourse ...
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
e48ac5e054a6da63d68be9102aee045fa7c22660
test/setup/main.tf
test/setup/main.tf
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Test enabling compute engine api
Test enabling compute engine api
HCL
apache-2.0
GoogleCloudPlatform/terraform-google-cloud-run,GoogleCloudPlatform/terraform-google-cloud-run
f614cfc4d5d5d6b4af9f3873d2e6d7543ac7880a
azure/modules/kubeconfig/kubeconfig.tf
azure/modules/kubeconfig/kubeconfig.tf
data "template_file" "kubeconfig" { template = <<EOF kubectl config set-cluster cluster-${ var.name } \ --embed-certs=true \ --server=https://${ var.fqdn_k8s } \ --certificate-authority=${ var.ca_pem } kubectl config set-credentials admin-${ var.name } \ --embed-certs=true \ --certificate-authority=${ var....
resource "null_resource" "kubeconfig" { provisioner "local-exec" { command = <<LOCAL_EXEC KUBECONFIG="${ var.data_dir}/kubeconfig" \ kubectl config set-cluster cluster-${ var.name } \ --server=https://${ var.fqdn_k8s } \ --certificate-authority=${ var.ca_pem } &&\ KUBECONFIG="${ var.data_dir}/kubeconfig" \ k...
Write Kubeconfig to Deploy DIR
Write Kubeconfig to Deploy DIR
HCL
apache-2.0
cncf/demo,cncf/demo,cncf/demo,cncf/demo
f95662baef13e35936167110a42c0c94b3a528ef
test.tf
test.tf
variable "scaleway_auth_token" {} variable "scaleway_organization" {} provider "scaleway" { token = "${var.scaleway_auth_token}" organization = "${var.scaleway_organization}" } resource "scaleway_ip" "nginx_ip" {} resource "scaleway_volume" "storage" { size = "50GB" } resource "scaleway_server" "hex" { name...
Add an example terraform config
Add an example terraform config
HCL
mit
hex-sh/terraform-provider-scaleway
26fa1c8fceeae8adf8adce77adfe4358132a5b71
terraform/datadog/concourse-jobs.tf
terraform/datadog/concourse-jobs.tf
resource "datadog_timeboard" "concourse-jobs" { title = "${format("%s job runtime difference", var.env) }" description = "vs previous hour" read_only = false graph { title = "Runtime changes vs hour ago" viz = "change" request { q = "${format("avg:%s_concourse.build.finished{*} by {job}", r...
resource "datadog_timeboard" "concourse-jobs" { title = "${format("%s job runtime difference", var.env) }" description = "vs previous hour" read_only = false graph { title = "Runtime changes vs hour ago" viz = "change" request { q = "${format("avg:concourse.build.finished{bosh-deployment:%s...
Use bosh-deployment tag for concourse metrics
Use bosh-deployment tag for concourse metrics The environment name is passed as a tag in `bosh-deployment` so we don't need it in the metric name. As a consequenece, we don't have to remove hyphens as it is fine to have hyphens in tags.
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
977fa9c54163c27a8107ec3a38f5efc5a40a5489
terraform/modules/iam-users/users/main.tf
terraform/modules/iam-users/users/main.tf
resource "aws_iam_user" "ben_vandersteen" { name = "benvandersteen" force_destroy = true } resource "aws_iam_user" "argyris_galamatis" { name = "argyrisgalamatis" force_destroy = true } resource "aws_iam_user" "kat_stevens" { name = "katstevens" force_destroy = true } resource ...
resource "aws_iam_user" "ben_vandersteen" { name = "benvandersteen" force_destroy = true } resource "aws_iam_user" "argyris_galamatis" { name = "argyrisgalamatis" force_destroy = true } resource "aws_iam_user" "kat_stevens" { name = "katstevens" force_destroy = true } resource ...
Add Daniele to terraform resources
Add Daniele to terraform resources
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
1bab2310c7ab01366a7734b9ef548804fddd28ea
data/data/aws/iam/main.tf
data/data/aws/iam/main.tf
locals { arn = "aws" } resource "aws_iam_instance_profile" "worker" { name = "${var.cluster_name}-worker-profile" role = "${aws_iam_role.worker_role.name}" } resource "aws_iam_role" "worker_role" { name = "${var.cluster_name}-worker-role" path = "/" assume_role_policy = <<EOF { "Version": "2012-10-1...
locals { arn = "aws" } resource "aws_iam_instance_profile" "worker" { name = "${var.cluster_name}-worker-profile" role = "${aws_iam_role.worker_role.name}" } resource "aws_iam_role" "worker_role" { name = "${var.cluster_name}-worker-role" path = "/" assume_role_policy = <<EOF { "Version": "2012-10-1...
Remove S3 access privilege from worker iam-instance-role
data/data/aws/iam: Remove S3 access privilege from worker iam-instance-role Running through kubelet code, the cloudprovider uses S3 only for load balancer logs by learning through the annotation. And load balancers are not called from kubelet, so we can safely remove s3 access from compute nodes.
HCL
apache-2.0
derekhiggins/installer,derekhiggins/installer
68ca15d0b5cf98d0908e231ab9dd02c2614e6e4a
test/setup/versions.tf
test/setup/versions.tf
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Set required Terraform version for test setup
Set required Terraform version for test setup
HCL
apache-2.0
terraform-google-modules/terraform-google-sql-db,terraform-google-modules/terraform-google-sql-db
9dd2bb65b9faa385585b59fc23bdcce61ea978a2
plans/jenkinsio_dns.tf
plans/jenkinsio_dns.tf
# # This terraform plan defines the resources necessary for DNS setup of jenkins.io # locals { a_records = { cucumber = "199.193.196.24" celery = "162.242.234.101" okra = "162.209.106.32" cabbage = "104.130.167.56" kelp = "162.209.124.149" } aaaa_records = {} cname_records = {} } resource ...
Add tf support for jenkinsio DNS
Add tf support for jenkinsio DNS
HCL
mit
olblak/azure,olblak/azure,olblak/azure,jenkins-infra/azure
79f5e78b3381bd2ce06529c9048ff7bd30061ffd
terraform/datadog/syslog_drains.tf
terraform/datadog/syslog_drains.tf
resource "datadog_monitor" "syslog_drains" { name = "${format("%s syslog drains", var.env)}" type = "query alert" message = "Consider scaling the adapters to cope with the number of syslog drains. See https://github.com/cloudfoundry/cf-syslog-drain-release/tree/v6.4#syslo...
Add a syslog drain monitor
Add a syslog drain monitor This monitors the number of syslog drains to ensure we have scaled the adapter VMs sufficiently. According to the documentation[1] we should scale to 3 VMs when we hit 250 drains. This is because the adapters now cap the number of streams it runs (it runs 2 streams per drain for high availab...
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
bb0abe599af9cc98670c1e9af6c57fbcefc51ed8
packet/modules/master/master.tf
packet/modules/master/master.tf
resource "packet_device" "masters" { hostname = "${ var.name }-master${ count.index + 10 }" count = "${ var.master_node_count }" facility = "${ var.packet_facility }" project_id = "${ var.packet_project_id }" plan = "${ var.packet_master_device_plan }" billing_cy...
resource "packet_device" "masters" { hostname = "${ var.name }-master${ count.index + 10 }" count = "${ var.master_node_count }" facility = "${ var.packet_facility }" project_id = "${ var.packet_project_id }" plan = "${ var.packet_master_device_plan }" billing_cy...
Join Cloud_init Data with ;
Join Cloud_init Data with ;
HCL
apache-2.0
cncf/cross-cloud
bfd0967acfccc41acf02643c4851d9a6afefa29b
terraform/shared/config/nomad_client.hcl
terraform/shared/config/nomad_client.hcl
data_dir = "/opt/nomad/data" bind_addr = "0.0.0.0" # Enable the client client { enabled = true } consul { address = "127.0.0.1:8500" } vault { enabled = true address = "vault.service.consul" }
data_dir = "/opt/nomad/data" bind_addr = "0.0.0.0" # Enable the client client { enabled = true options { "driver.raw_exec.enable" = "1" "docker.privileged.enabled" = "true" } } consul { address = "127.0.0.1:8500" } vault { enabled = true address = "vault.service.consul" }
Enable raw_exec and Docker privileged mode
Enable raw_exec and Docker privileged mode
HCL
mpl-2.0
burdandrei/nomad,nak3/nomad,dvusboy/nomad,burdandrei/nomad,hashicorp/nomad,burdandrei/nomad,burdandrei/nomad,hashicorp/nomad,nak3/nomad,nak3/nomad,dvusboy/nomad,hashicorp/nomad,nak3/nomad,hashicorp/nomad,burdandrei/nomad,burdandrei/nomad,hashicorp/nomad,burdandrei/nomad,dvusboy/nomad,dvusboy/nomad,nak3/nomad,dvusboy/no...
51f6f5d5aec8d52ad6fbfbbddb03c886495d9518
loris/terraform/alarms.tf
loris/terraform/alarms.tf
# In general a 4xx isn't a significant event, but a significant number of # 4xx errors may indicate a systemic problem with Loris (e.g. accidentally # deleting all the images in the S3 bucket!). # # So we look for an unusually high number of CloudFront 4xxs. # # This is a finger-in-the-air estimate based on historic Cl...
# In general a 4xx isn't a significant event, but a significant number of # 4xx errors may indicate a systemic problem with Loris (e.g. accidentally # deleting all the images in the S3 bucket!). # # So we look for an unusually high number of CloudFront 4xxs. # # This is a finger-in-the-air estimate based on historic Cl...
Disable loris 4xx alarm action
Disable loris 4xx alarm action
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
060831c7edfdca63644b0a8486d6ad3161ad0a28
fixtures/aws/outputs.tf
fixtures/aws/outputs.tf
output "vpc_id" { value = "${aws_vpc.test_vpc.id}" }
output "vpc_id" { value = "${aws_vpc.test_vpc.id}" } output "vpc_tags" { value = "${aws_vpc.test_vpc.tags}" }
Add VPC tags as output in fixture
Add VPC tags as output in fixture - Displays tag change in the UI - Allows for verification in tests
HCL
mit
amohemed/terraform-resource,amohemed/terraform-resource,ljfranklin/terraform-resource,ljfranklin/terraform-resource
b427196df1f83e797a72bba41a8fa5c11e0218b5
deploy/engine/components/org/monitor/forseti/main.tf
deploy/engine/components/org/monitor/forseti/main.tf
terraform { backend "gcs" {} } // TODO: Incorporate latest features once 5.2.0 is released. module "forseti" { source = "terraform-google-modules/forseti/google" version = "~> 5.2.0" domain = var.domain project_id = var.project_id org_id = var.org_id network = "forset...
terraform { backend "gcs" {} } module "forseti" { source = "terraform-google-modules/forseti/google" version = "~> 5.2.0" domain = var.domain project_id = var.project_id org_id = var.org_id network = "forseti-vpc" subnetwork = "forseti-subnet" client_enabled...
Remove a TODO which is done.
Remove a TODO which is done. PiperOrigin-RevId: 304185571
HCL
apache-2.0
GoogleCloudPlatform/healthcare,GoogleCloudPlatform/healthcare,GoogleCloudPlatform/healthcare,GoogleCloudPlatform/healthcare,GoogleCloudPlatform/healthcare,GoogleCloudPlatform/healthcare,GoogleCloudPlatform/healthcare,GoogleCloudPlatform/healthcare
d9afa633a4ceaf14472be92e9983d68330e498f8
deployment/terraform/aws/validator/main.tf
deployment/terraform/aws/validator/main.tf
data "aws_ami" "ubuntu" { most_recent = true owners = ["099720109477"] filter { name = "name" values = ["ubuntu-minimal/images/hvm-ssd/ubuntu-focal-20.04-amd64-minimal-*"] } filter { name = "virtualization-type" values = ["hvm"] } } resource "aws_key_p...
data "aws_ami" "ubuntu" { most_recent = true owners = ["099720109477"] filter { name = "name" values = ["ubuntu-minimal/images/hvm-ssd/ubuntu-focal-20.04-amd64-minimal-*"] } filter { name = "virtualization-type" values = ["hvm"] } } resource "aws_key_p...
Remove metadata_options from Validator node instance
Remove metadata_options from Validator node instance
HCL
apache-2.0
zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger
f0e5a7f6b2af53d2a2f5c716caaaf8ec890425ed
terraform/instances.tf
terraform/instances.tf
resource "aws_instance" "web" { ami = "${lookup(var.centos_amis, var.region)}" instance_type = "t2.nano" subnet_id = "${aws_subnet.public.id}" vpc_security_group_ids = ["${aws_security_group.default.id}","${aws_security_group.web.id}"] key_name = "${aws_key_pair.aws-blog-deployer.key_name}" source_dest_chec...
resource "aws_instance" "web" { ami = "${lookup(var.centos_amis, var.region)}" instance_type = "t2.nano" subnet_id = "${aws_subnet.private.id}" vpc_security_group_ids = ["${aws_security_group.default.id}","${aws_security_group.web.id}"] key_name = "${aws_key_pair.aws-blog-deployer.key_name}" source_dest_che...
Update tags/name to show in correct inventory group
Update tags/name to show in correct inventory group
HCL
mit
proffalken/aws-blog-framework,proffalken/aws-blog-framework,proffalken/aws-blog-framework
5f3c67a89f17f826e94978aef4519c37de4a39b8
examples/deployment/openstack/large-cluster/hostnames.tf
examples/deployment/openstack/large-cluster/hostnames.tf
resource "null_resource" "hostnames" { depends_on = ["openstack_compute_instance_v2.salt-master", "openstack_compute_instance_v2.job-queue", "openstack_compute_instance_v2.db-server", "openstack_compute_instance_v2.tracker", "openstack_compute_instance_v2.worker", ] provisioner...
Add IP/hostname mapping on bastion to support ssh by name
Add IP/hostname mapping on bastion to support ssh by name
HCL
mit
llevar/germline-regenotyper,llevar/germline-regenotyper
8237ce141b4e6697317e7536931d3649746f3c93
main.tf
main.tf
variable "region" {} variable "channel" {} variable "virttype" {} output "ami_id" { value = "${lookup(var.all_amis, format(\"%s-%s-%s\", var.channel, var.region, var.virttype))}" }
variable "region" {} variable "channel" {} variable "virttype" {} output "ami_id" { value = "${lookup(var.all_amis, format("%s-%s-%s", var.channel, var.region, var.virttype))}" }
Fix quote syntax for terraform 0.7
Fix quote syntax for terraform 0.7 See https://github.com/hashicorp/terraform/pull/7201
HCL
apache-2.0
terraform-community-modules/tf_aws_coreos_ami
e2b511b3447f4958ca9ddaffce733856e85bff15
examples/container_engine/regional_subnet/kube_config.tf
examples/container_engine/regional_subnet/kube_config.tf
// Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. variable "cluster_kube_config_expiration" { default = 2592000 } variable "cluster_kube_config_token_version" { default = "1.0.0" } data "oci_containerengine_cluster_kube_config" "test_cluster_kube_config" { #Required cluster_id =...
// Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. variable "cluster_kube_config_expiration" { default = 2592000 } variable "cluster_kube_config_token_version" { default = "2.0.0" } data "oci_containerengine_cluster_kube_config" "test_cluster_kube_config" { #Required cluster_id =...
Update examples to use 2.0.0 version of kubeconfig
Update examples to use 2.0.0 version of kubeconfig
HCL
mpl-2.0
oracle/terraform-provider-baremetal,oracle/terraform-provider-baremetal
4dfd6f7f05662d1d94c41d39577e72479d392c9f
data/data/aws/iam/main.tf
data/data/aws/iam/main.tf
locals { arn = "aws" } resource "aws_iam_instance_profile" "worker" { name = "${var.cluster_name}-worker-profile" role = "${aws_iam_role.worker_role.name}" } resource "aws_iam_role" "worker_role" { name = "${var.cluster_name}-worker-role" path = "/" assume_role_policy = <<EOF { "Version": "2012-10-1...
locals { arn = "aws" } resource "aws_iam_instance_profile" "worker" { name = "${var.cluster_name}-worker-profile" role = "${aws_iam_role.worker_role.name}" } resource "aws_iam_role" "worker_role" { name = "${var.cluster_name}-worker-role" path = "/" assume_role_policy = <<EOF { "Version": "2012-10-1...
Trim down the worker iam role
data/data/aws/iam: Trim down the worker iam role The kubelet was suspected to use attach/detach volume and load balancer apis, but apparently not. We can trim the privileges down to minimum now. The last big one remaining is DescribeInstances that is stuck because of instance 'tags'.
HCL
apache-2.0
derekhiggins/installer,derekhiggins/installer
e536c33f2c1e2a3824e5ffd1a9387a7dfd923ce9
terraform/datadog/concourse-jobs.tf
terraform/datadog/concourse-jobs.tf
resource "datadog_timeboard" "concourse-jobs" { title = "${format("%s job runtime difference", var.env) }" description = "vs previous hour" read_only = false graph { title = "Runtime changes vs hour ago" viz = "change" request { q = "${format("avg:%s_concourse.build.finished{*} by {job}", v...
Create job runtime difference timeboard
Create job runtime difference timeboard Create a basic timeboard which would show time difference in job runtimes. Unfortunately TF provider for datadog currently doesn't allow specifying any other parameters. To make this timeboard more useful, do edit it manually in order to: * show percentual change instead of abso...
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf
fa47ad21aca940f461a3268f37d2adbfa81f54f7
build/s3_test_bucket.tf
build/s3_test_bucket.tf
provider "aws" { region = "us-west-2" } resource "aws_s3_bucket" "b" { bucket = "${var.bucket_name}" acl = "public-read" policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", ...
provider "aws" { region = "us-west-2" } resource "aws_s3_bucket" "b" { bucket = "${var.bucket_name}" acl = "public-read" policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", ...
Add routing_rules to s3 terraform
Add routing_rules to s3 terraform
HCL
apache-2.0
justinharringa/harringa.com
bd41d132010abf67651241cc678f52594b5dc9c8
monitoring/post_to_slack/cloudfront_trigger.tf
monitoring/post_to_slack/cloudfront_trigger.tf
# Because CloudFront metrics (and the alarm SNS topic) live in # us-east-1 rather than eu-west-1, we need to jump through a few extra # hoops to get the SNS ~> Lambda trigger set up. provider "aws" { region = "us-east-1" alias = "us_east_1" } resource "random_id" "statement_id" { keepers = { aws_sns_topic_...
# Because CloudFront metrics (and the alarm SNS topic) live in # us-east-1 rather than eu-west-1, we need to jump through a few extra # hoops to get the SNS ~> Lambda trigger set up. provider "aws" { region = "us-east-1" alias = "us_east_1" } resource "random_id" "statement_id" { keepers = { aws_sns_topic_...
Define the trigger in us_east_1
Define the trigger in us_east_1
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
3ae91985006078293e3bf64d13d8b21cd7615d5f
catalogue_pipeline_data/terraform/vhs/dynamo.tf
catalogue_pipeline_data/terraform/vhs/dynamo.tf
resource "aws_dynamodb_table" "table" { name = "${var.table_name_prefix}${var.name}" read_capacity = 1 write_capacity = 1 hash_key = "id" stream_enabled = "${var.table_stream_enabled}" stream_view_type = "${var.table_stream_enabled ? "NEW_AND_OLD_IMAGES": ""}" attribute { n...
resource "aws_dynamodb_table" "table" { name = "${var.table_name_prefix}${var.name}" read_capacity = 1 write_capacity = 1 hash_key = "id" stream_enabled = "${var.table_stream_enabled}" stream_view_type = "${var.table_stream_enabled ? "NEW_AND_OLD_IMAGES": ""}" attribute { n...
Remove the reindexTracker GSI from the VHS
Remove the reindexTracker GSI from the VHS
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
e9178d381170496503f711d21f74cfdfc9408d01
ci/brats/aws_postgres.tf
ci/brats/aws_postgres.tf
variable "rds_postgres_username" {} variable "rds_postgres_password" {} variable "rds_postgres_databasename" {} resource "aws_db_instance" "postgres" { allocated_storage = 10 storage_type = "gp2" engine = "postgres" engine_version = "9.6.8" instance_class = "db.t2.micro" ...
variable "rds_postgres_username" {} variable "rds_postgres_password" {} variable "rds_postgres_databasename" {} resource "aws_db_instance" "postgres" { allocated_storage = 10 storage_type = "gp2" engine = "postgres" engine_version = "9.6.8" instance_class = "db.t2.micro" ...
Allow all inbound access to aws postgres instances
Allow all inbound access to aws postgres instances [#158168890](https://www.pivotaltracker.com/story/show/158168890) Co-authored-by: Luan Santos <509a85c757dc22c0257f4655fb3fb682d42f965b@pivotal.io>
HCL
apache-2.0
barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh
456b3479acfb1171c7e499b4095821f35ca55f7e
examples/shared_vpc/main.tf
examples/shared_vpc/main.tf
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Fix network_project_id variable in shared_vpc example
Fix network_project_id variable in shared_vpc example
HCL
apache-2.0
terraform-google-modules/terraform-google-kubernetes-engine,terraform-google-modules/terraform-google-kubernetes-engine,terraform-google-modules/terraform-google-kubernetes-engine
114b01583bc41421c1e9a66937c46bfeacaff800
eucentral1-demo/mesos.tf
eucentral1-demo/mesos.tf
module "mesos" { source = "github.com/bobtfish/tf_aws_mesos" adminlbs = "1" lbs = "2" masters = "3" slaves = "5" region = "${var.region}" admin_iprange = "${var.admin_iprange}" admin_...
module "mesos" { source = "github.com/bobtfish/tf_aws_mesos" adminlbs = "1" lbs = "2" masters = "3" slaves = "5" region = "${var.region}" admin_iprange = "${var.admin_iprange}" admin_...
Remove variable we don't have
Remove variable we don't have
HCL
apache-2.0
bobtfish/terraform-example-mesos-cluster
d611e6614d6de32cac61af9a64b15e9ee1537972
calm_table.tf
calm_table.tf
provider "aws" { region = "eu-west-1" } resource "aws_dynamodb_table" "calm-dynamodb-table" { name = "CalmData" read_capacity = 5 write_capacity = 5 hash_key = "RecordID" range_key = "RecordType" attribute { name = "RecordID" type = "S" } attribute { name = "RecordType" type = "S" }...
Add a Terraform plan for the Calm DynamoDB table
Add a Terraform plan for the Calm DynamoDB table
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
33c45a324e34008c7ea537e41f97f947eff7ed97
builder.hcl
builder.hcl
tag = true pipeline "build" { step { type = "docker" image = "rls" context = "." } step { type = "docker-shell" image = "rls" volume "code" { source = "." dest = "/go/src/github.com/altipla-consulting/rls" } volume "binary" { source = "./tmp" dest = "/opt...
tag = true pipeline "build" { step { type = "docker" image = "rls" context = "." } step { type = "docker-shell" image = "rls" volume "code" { source = "." dest = "/go/src/github.com/altipla-consulting/rls" } volume "binary" { source = "./tmp" dest = "/opt...
Fix name of stage release binary.
Fix name of stage release binary.
HCL
mit
altipla-consulting/rls
b0a8a4a7c15eee9ccdb1b3a9d877d987cf983564
terraform/modules/application-logs/variables.tf
terraform/modules/application-logs/variables.tf
variable "environment" {} variable "retention_in_days" {} variable "app_names" { type = "list" default = ["buyer-frontend", "supplier-frontend", "admin-frontend", "api", "search-api", "briefs-frontend"] }
variable "environment" {} variable "retention_in_days" {} variable "app_names" { type = "list" default = [ "buyer-frontend", "supplier-frontend", "admin-frontend", "api", "search-api", "briefs-frontend", "brief-responses-frontend" ] }
Add brief-responses-frontend to list of apps in terraform
Add brief-responses-frontend to list of apps in terraform Adding the new app to the list in the application logs module will create the log groups as well as the metrics.
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
b275d143aaba82b6d8ac521a5e2e8a6c4ebbf4ef
deployment/terraform/aws/validator/main.tf
deployment/terraform/aws/validator/main.tf
data "aws_ami" "ubuntu" { most_recent = true owners = ["099720109477"] filter { name = "name" values = ["ubuntu-minimal/images/hvm-ssd/ubuntu-focal-20.04-amd64-minimal-*"] } filter { name = "virtualization-type" values = ["hvm"] } } resource "aws_key_p...
data "aws_ami" "ubuntu" { most_recent = true owners = ["099720109477"] filter { name = "name" values = ["ubuntu-minimal/images/hvm-ssd/ubuntu-focal-20.04-amd64-minimal-*"] } filter { name = "virtualization-type" values = ["hvm"] } } resource "aws_key_p...
Add private security group to Validator instance
Add private security group to Validator instance
HCL
apache-2.0
zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger
d54c3b37bc59152edf2402efc45d6dd1f9cc794b
variables.tf
variables.tf
variable "aws_access_key" {} variable "aws_secret_key" {} variable "aws_key_path" {} variable "aws_key_name" {} variable "aws_jumpbox_ami" {} variable "aws_bosh_lite_ami" {} variable "prefix" {} variable "bosh_lite_stemcell" {} variable "aws_region" { default = "us-east-1" } # Variables for Jumpbox variable "aws_j...
variable "aws_access_key" {} variable "aws_secret_key" {} variable "aws_key_path" {} variable "aws_key_name" {} variable "aws_jumpbox_ami" {} variable "aws_bosh_lite_ami" {} variable "prefix" {} variable "bosh_lite_stemcell" {} variable "aws_region" { default = "us-east-1" } variable "prefix" { default = "my" } ...
Add default "my" for prefix
Add default "my" for prefix
HCL
apache-2.0
eljuanchosf/terraform-aws-bosh-lite-cf-bootstrap
07286cc3c0b9c837cc6f9f98652580328a0fd0e5
data_science/terraform/main.tf
data_science/terraform/main.tf
module "p2_compute" { source = "git::https://github.com/wellcometrust/terraform.git//terraform-modules/dlami_asg?ref=fix-userdata" name = "jupyter-p2" key_name = "${var.key_name}" bucket_name = "${aws_s3_bucket.jupyter.id}" instance_type = "p2.xlarge" vpc_id = "${module.vpc.vpc_id}" vpc_subne...
module "p2_compute" { source = "git::https://github.com/wellcometrust/terraform-modules.git//dlami_asg?ref=fix-userdata" name = "jupyter-p2" key_name = "${var.key_name}" bucket_name = "${aws_s3_bucket.jupyter.id}" instance_type = "p2.xlarge" vpc_id = "${module.vpc.vpc_id}" vpc_subnets = "${mo...
Fix the references to the external modules
Fix the references to the external modules
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
df41921ad387b4e98488f7516ca6e2c6d2111c5b
terraform/aws-single/single.tf
terraform/aws-single/single.tf
provider "aws" { region = "${var.region}" } resource "aws_instance" "master" { ami = "${lookup(var.amis, var.region)}" instance_type = "${var.size}" security_groups = ["${aws_security_group.octohost.name}"] key_name = "${var.key_name}" tags { Name = "octohost-master" } connection ...
provider "aws" { region = "${var.region}" } resource "aws_instance" "master" { ami = "${lookup(var.amis, var.region)}" instance_type = "${var.size}" security_groups = ["${aws_security_group.octohost.name}"] key_name = "${var.key_name}" root_block_device { volume_size = 80 } tags {...
Make the root device 80GB.
Make the root device 80GB.
HCL
apache-2.0
scalp42/octohost-cookbook,scalp42/octohost-cookbook,octohost/octohost-cookbook,scalp42/octohost-cookbook,octohost/octohost-cookbook,octohost/octohost-cookbook
bc5e684eae53317dd398a7ac04c39869a0cfdb72
azure/modules/network/output.tf
azure/modules/network/output.tf
output "subnet_id" { value = "${ azurerm_subnet.cncf.id }" }
output "subnet_id" { value = "${ azurerm_subnet.cncf.id }" } output "vitual_network_id" { value = "${ azurerm_virtual_network.cncf.id }" }
Add Extra Network Ouptuts for Debugging
Add Extra Network Ouptuts for Debugging
HCL
apache-2.0
cncf/cross-cloud
6ae09e1ca7567bab291b9b114593e7f201c4dfb5
terraform/ecs/task-definition.tf
terraform/ecs/task-definition.tf
resource "aws_ecs_task_definition" "ecs-pace-task-definition" { family = "pace-task-definition" container_definitions = <<EOF [{ "name": "pace", "image": "lplotni/pace-app", "cpu": 1024, "memory": 512, "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-regio...
resource "aws_ecs_task_definition" "ecs-pace-task-definition" { family = "pace-task-definition" container_definitions = <<EOF [{ "name": "pace", "image": "lplotni/pace-app", "cpu": 1024, "memory": 512, "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-regio...
Revert "migrate db on startup"
Revert "migrate db on startup" This reverts commit bf73a6690c42ab81d020b6db85b51c456f329b4d.
HCL
apache-2.0
lplotni/pace,lplotni/pace,cz8s/pace,cz8s/pace,lplotni/pace,cz8s/pace
18ac4af6520c4ab6c82d491a9209ad978eb9f02c
terraform/main.tf
terraform/main.tf
provider "google" { project = "steam-strategy-174408" region = "europe-west1" } resource "google_compute_instance" "app" { name = "reddit-app" machine_type = "g1-small" zone = "europe-west1-b" # определение загрузочного диска boot_disk { initialize_params { image = "reddit-b...
Add terraform-file for new instance
Add terraform-file for new instance
HCL
mit
DmitriySh/infra,DmitriySh/infra,DmitriySh/infra
eb08f4019972fea6fc5fae67c66eb2de9d6493ef
builtin/providers/kubernetes/test-infra/main.tf
builtin/providers/kubernetes/test-infra/main.tf
provider "google" { // Provider settings to be provided via ENV variables } data "google_compute_zones" "available" {} resource "random_id" "cluster_name" { byte_length = 10 } resource "random_id" "username" { byte_length = 14 } resource "random_id" "password" { byte_length = 16 } resource "google_container_...
Add GKE config as test infrastructure
kubernetes: Add GKE config as test infrastructure
HCL
mpl-2.0
apparentlymart/terraform,Pryz/terraform,Boran/terraform,maxenglander/terraform,wowgroup/terraform,gechr/terraform,displague/terraform,Sixgill/terraform,kl4w/terraform,kwilczynski/terraform,heimweh/terraform,billyschmidt/terraform,hashicorp/terraform,tommynsong/terraform,StephenWeatherford/terraform,mafrosis/terraform,f...
36eb342875626c5b3a32d08af52202bb707d1fd6
examples/docker_provider/main.tf
examples/docker_provider/main.tf
provider "docker" { host = "${var.docker_host}" } data "docker_registry_image" "ubuntu" { name = "${var.docker_image}" } resource "docker_image" "ubuntu" { name = "${data.docker_registry_image.ubuntu.name}" pull_triggers = ["${data.docker_registry_image.ubuntu.sha256_digest}"] keep_locally = true } resourc...
provider "docker" { host = "${var.docker_host}" } data "docker_registry_image" "ubuntu" { name = "${var.docker_image}" } resource "docker_image" "ubuntu" { name = "${data.docker_registry_image.ubuntu.name}" pull_trigger = "${data.docker_registry_image.ubuntu.sha256_digest}" keep_locally = true } resource "...
Use deprecated docker_image pull_trigger for v0.7
Use deprecated docker_image pull_trigger for v0.7
HCL
apache-2.0
newcontext-oss/kitchen-terraform,newcontext-oss/kitchen-terraform,newcontext-oss/kitchen-terraform,newcontext-oss/kitchen-terraform,newcontext/kitchen-terraform