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
bebcd4d4cbf3aa86e1a3d65d74bdd834b5a2c94d
data_science/terraform/main.tf
data_science/terraform/main.tf
module "p2_compute" { source = "git::https://github.com/wellcometrust/terraform-modules.git//dlami_asg?ref=v9.5.0" 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 = "${module.v...
module "p2_compute" { source = "git::https://github.com/wellcometrust/terraform-modules.git//dlami_asg?ref=variable-spot-price-dlami-asg" name = "jupyter-p2" key_name = "${var.key_name}" bucket_name = "${aws_s3_bucket.jupyter.id}" instance_type = "p2.xlarge" spot_price = "0.5" vpc_id = "${mod...
Use variable spot price module
Use variable spot price module
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
5dc21ceb4bf48ee364ce928fa0d676e3c5b8e3ac
goobi_adapter/terraform/s3.tf
goobi_adapter/terraform/s3.tf
resource "aws_s3_bucket" "goobi_adapter" { bucket = "wellcomecollection-platform-adapters-goobi" lifecycle { prevent_destroy = true } }
resource "aws_s3_bucket" "goobi_adapter" { bucket = "wellcomecollection-platform-adapters-goobi" lifecycle { prevent_destroy = true } # We'll probably want to remove this rule when we actually start working with # the Goobi adapter and this content, but while we're not using it this should # save a bi...
Add a lifecycle rule for sending content in the Goobi adapters bucket to IA
Add a lifecycle rule for sending content in the Goobi adapters bucket to IA
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
ca470bad7cbb671f436e41499c918bb9c0dbfb3b
infra/scheduler/main.tf
infra/scheduler/main.tf
variable "s3_bucket" {} # topic that the lambda listens to resource "aws_sns_topic" "artifact_out_of_date" { name = "artifact_out_of_date" } # lambda module "scheduler_lambda" { source = "github.com/rzhilkibaev/logging_lambda.tf" name = "scheduler" s3_bucket = "${var.s3_bucket}" s3_key = "artifacts/schedule...
variable "s3_bucket" {} # topic that the lambda listens to resource "aws_sns_topic" "artifact_out_of_date" { name = "artifact_out_of_date" } # lambda module "scheduler_lambda" { source = "github.com/rzhilkibaev/logging_lambda.tf" name = "scheduler" s3_bucket = "${var.s3_bucket}" s3_key = "artifacts/schedule...
Add topic for build status
Add topic for build status
HCL
mit
rzhilkibaev/shmenkins,shmenkins/build-requester-vcs,rzhilkibaev/shmenkins
062b2f8667b72dbf47c19f0bf58083691e980beb
plans/repo_proxy.tf
plans/repo_proxy.tf
# # This terraform plan defines the resources necessary to host repo.jenkins-ci.org proxy cache files # # See: https://issues.jenkins-ci.org/browse/INFRA-1176 resource "azurerm_resource_group" "proxy" { name = "${var.prefix}proxy" location = "${var.location}" tags { env = "${var.prefix}" } ...
Add shared disk repo for artifactory proxy cache
Add shared disk repo for artifactory proxy cache
HCL
mit
jenkins-infra/azure,olblak/azure,olblak/azure,olblak/azure
9cf398437bbce6acbb792d49e414156c301ce3a4
gke/modules.tf
gke/modules.tf
module "vpc" { source = "./modules/vpc" name = "${ var.name }" cidr = "${ var.cidr }" region = "${ var.region }" } module "cluster" { source = "./modules/cluster" name = "${ var.name }" region = "${ var.region }" zone = "${ var.zone }" project = "${ var.project}" node_count = "${ var.node_count }" ...
module "vpc" { source = "./modules/vpc" name = "${ var.name }" cidr = "${ var.cidr }" region = "${ var.region }" } module "cluster" { source = "./modules/cluster" name = "${ var.name }" region = "${ var.region }" zone = "${ var.zone }" project = "${ var.project}" node_count = "${ var.node_count }" ...
Fix Kubeconfig Vars for GKE
Fix Kubeconfig Vars for GKE
HCL
apache-2.0
cncf/cross-cloud
15504b912130e514d24e433fd358292ae07caf29
task_definition.tf
task_definition.tf
data "template_file" "service" { template = coalesce(var.service_task_container_definitions, file("${path.module}/container-definitions/service.json.tpl")) vars = { name = var.service_name image = var.service_image command = jsonencode(var.service_command) port = var.service_port region = var.r...
data "template_file" "service" { template = coalesce(var.service_task_container_definitions, file("${path.module}/container-definitions/service.json.tpl")) vars = { name = var.service_name image = var.service_image command = jsonencode(var.service_command) port = var.service_port region = var.r...
Allow for host_path to be optional by using a lookup
Allow for host_path to be optional by using a lookup lookup with a default of null since the spec says host_path is optional.
HCL
mit
infrablocks/terraform-aws-ecs-service,infrablocks/terraform-aws-ecs-service
8cf90a7eba3d6f97cb6eaa597901fd85b30acd1e
vsphere/vsphere.tf
vsphere/vsphere.tf
# The vSphere Provider must be configured through # environment variables. # # The required set for this project is # # VSPHERE_SERVER # VSPHERE_USER # VSPHERE_PASSWORD provider "vsphere" { vsphere_server = "${var.vsphere_server}" user = "${var.vsphere_user}" password = "${var.vsphere_password}" ...
# The vSphere Provider must be configured through # environment variables. # # The required set for this project is # # VSPHERE_SERVER # VSPHERE_USER # VSPHERE_PASSWORD provider "vsphere" { version = ">= 1.6" vsphere_server = "${var.vsphere_server}" user = "${var.vsphere_user}" password = "${va...
Set vSphere provider min ver req
provider/vSphere: Set vSphere provider min ver req This patch sets the minimum required version for the vSphere provider for Terraform to 1.6. This is the version of the provider in which the Terraform resource, ResourcePool, was introduced.
HCL
apache-2.0
cncf/cross-cloud
eb9a1c63b3210cad7610037705678085e2e4dfe4
terraform/iam.tf
terraform/iam.tf
// Create IAM Role resource "aws_iam_role" "iam_role" { name = "${var.environment_name}-${var.unique_id}elk-role" assume_role_policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Action": "sts:AssumeRole", "Principal": { "Service": "ec2.amazonaws.com" }, "Effect": "Al...
// Create IAM Role resource "aws_iam_role" "iam_role" { name = "${var.environment_name}-${var.unique_id}elk-role" assume_role_policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Action": "sts:AssumeRole", "Principal": { "Service": "ec2.amazonaws.com" }, "Effect": "Al...
Revert "IAM Role not roles remove list"
Revert "IAM Role not roles remove list" This reverts commit 8c9c4c7373109750337d4c7669c139450a6bb992.
HCL
apache-2.0
TerraformDesignPattern/elk
48fb72fde07d7e810272f1e8257cc2efee8c0768
gcp/modules/gke-cluster/main.tf
gcp/modules/gke-cluster/main.tf
terraform { backend "gcs" {} } variable "project_id" {} variable "serviceaccount_key" {} # Terragrunt variables variable "node_type" {} module "gke_cluster" { source = "/exekube-modules/gke-cluster" project_id = "${var.project_id}" serviceaccount_key = "${var.serviceaccount_key}" initi...
terraform { backend "gcs" {} } variable "project_id" {} variable "serviceaccount_key" {} # Terragrunt variables variable "node_type" {} module "gke_cluster" { source = "/exekube-modules/gke-cluster" project_id = "${var.project_id}" serviceaccount_key = "${var.serviceaccount_key}" initi...
Add one more zone to gke_cluster to have room for rolling updates
Add one more zone to gke_cluster to have room for rolling updates
HCL
bsd-3-clause
mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra
2aa6914ba94553d103f873b2691109843af357c1
terraform/modules/logging/alarms/missing-logs/alarms.tf
terraform/modules/logging/alarms/missing-logs/alarms.tf
// It's worth noting here that this alarm can never be triggered by the statistic comparison. // AWS doesn't record a metric if the value is 0 // The alarm will be triggered when the metric is not emitted due to the breaching poicy on missing data resource "aws_cloudwatch_metric_alarm" "missing_logs_alarm" { count ...
// It's worth noting here that this alarm can never be triggered by the statistic comparison. // AWS doesn't record a metric if the value is 0 // The alarm will be triggered when the metric is not emitted due to the breaching poicy on missing data resource "aws_cloudwatch_metric_alarm" "missing_logs_alarm" { count ...
Revert "Change alarm on missing logs from 5 x 60s to 1 x 300s to keep with rest of alert periods"
Revert "Change alarm on missing logs from 5 x 60s to 1 x 300s to keep with rest of alert periods" This reverts commit 4eabd764 Alerts are triggered at the 15 minute mark but since this alert can be sometimes used to flag an app being down, we're reverting to the previous solution. This means we are checking every 1 ...
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
8b95ad8dd995b3f401c7ddd8d7dc8e8ed78e15c8
Terraform/clientwebapp.tf
Terraform/clientwebapp.tf
terraform { backend "azurerm" { storage_account_name = "__terraformstorageaccount__" container_name = "__terraformcontainer__" key = "terraform.tfstate" access_key = "__storagekey__" } } provider "azurerm" { } resource "azurerm_resource_group" "devops_portal" { ...
terraform { backend "azurerm" { storage_account_name = "__terraformstorageaccount__" container_name = "__terraformcontainer__" key = "terraform.tfstate" access_key = "__storagekey__" } } variable "product" { default = "devops portal" } variable "organisation" { ...
Add app service to terraform
Add app service to terraform
HCL
mit
Gary-Moore/DevOps-Portal,Gary-Moore/DevOps-Portal,Gary-Moore/DevOps-Portal,Gary-Moore/DevOps-Portal
2093fb211ef29eea07342a2f65c72e330d738fe7
modules/worker_pool/io.tf
modules/worker_pool/io.tf
/* Copyright 2017 Michael Goodness 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, software di...
/* Copyright 2017 Michael Goodness 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, software di...
Set min pool size to 1
Set min pool size to 1
HCL
apache-2.0
mgoodness/kubit
2b7d637f1d1848f8ecb22f5dffb883cf80a6fabd
infrastructure/app/cloudfront.tf
infrastructure/app/cloudfront.tf
data "aws_acm_certificate" "website_certificate" { domain = "${var.domain}" statuses = ["ISSUED"] } resource "aws_cloudfront_distribution" "s3_distribution" { origin { domain_name = "${aws_s3_bucket.website.bucket_domain_name}" origin_id = "websiteS3Origin" } aliases = ["${var.domain}", "w...
data "aws_acm_certificate" "website_certificate" { domain = "${var.domain}" statuses = ["ISSUED"] } resource "aws_cloudfront_distribution" "s3_distribution" { origin { domain_name = "${aws_s3_bucket.website.bucket_domain_name}" origin_id = "websiteS3Origin" } aliases = ["${var.domain}", "w...
Remove custom error responses (not SPA)
Remove custom error responses (not SPA)
HCL
mit
dereklieu/formation
338c7dc45753477d541b6b88aa1e6610c6aa2e43
plans/dockerregistry.tf
plans/dockerregistry.tf
resource "azurerm_resource_group" "dockerregistry" { name = "${var.prefix}dockerregistry" location = "${var.location}" tags { "env" = "${var.prefix}" } } resource "azurerm_storage_account" "dockerregistry" { name = "${var.prefix}dockerregistry" resource_group_name = "${azurerm_re...
resource "azurerm_resource_group" "dockerregistry" { name = "${var.prefix}dockerregistry" location = "${var.dockerregistrylocation}" tags { "env" = "${var.prefix}" } } resource "azurerm_storage_account" "dockerregistry" { name = "${var.prefix}dockerregistry" resource_group_name =...
Use specific location for docker registry
Use specific location for docker registry As azure don't provide container registry in east us 2, we must use east us for this service
HCL
mit
jenkins-infra/azure,olblak/azure,olblak/azure,olblak/azure
0813cf59a35358f28eade13f657e296c3a375b40
provisioning/terraform/environments/prod/main.tf
provisioning/terraform/environments/prod/main.tf
locals { env = "prod" } provider "google" {} data "google_organization" "ferrari_how" { domain = var.google_organization_domain } resource "google_project" "ferrarimarco_iac" { billing_account = var.google_billing_account_id name = var.google_iac_project_id project_id = var.google_iac_proje...
locals { env = "prod" } provider "google" {} data "google_organization" "ferrari_how" { domain = var.google_organization_domain } resource "google_project" "ferrarimarco_iac" { billing_account = var.google_billing_account_id name = var.google_iac_project_id project_id = var.google_iac_proje...
Set billing ID for the IoT project
Set billing ID for the IoT project
HCL
mit
ferrarimarco/home-lab,ferrarimarco/home-lab
417fb924e88f8860dab84531461a3f4f458c3fe6
terraform/versions.tf
terraform/versions.tf
terraform { required_providers { aws = { source = "hashicorp/aws" version = "~>4.36.1" } random = { source = "hashicorp/random" version = "~>3.4.2" } pingdom = { source = "russellcardullo/pingdom" version = "1.1.2" } } required_version = ">= 1.3.3" }
terraform { required_providers { aws = { source = "hashicorp/aws" version = "~>4.36.1" } random = { source = "hashicorp/random" version = "~>3.4.3" } pingdom = { source = "russellcardullo/pingdom" version = "1.1.2" } } required_version = ">= 1.3.3" }
Upgrade random provider to 3.4.3
Upgrade random provider to 3.4.3
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
ae4d1a620b0342b4ba09d5145aba86f39688bee7
test/fixtures/simulated_ci_environment/outputs.tf
test/fixtures/simulated_ci_environment/outputs.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...
Rename output to service_account_private_key in simulated CI
Rename output to service_account_private_key in simulated CI Address review comment https://github.com/terraform-google-modules/terraform-google-startup-scripts/pull/14#discussion_r255206381 Note, even though the output variable name is changed, the intent is to model the `phoogle_sa` output commonly used in the infr...
HCL
apache-2.0
terraform-google-modules/terraform-google-startup-scripts,terraform-google-modules/terraform-google-startup-scripts
a47337c12240acc5dc1a136e7232149276f9085e
main.tf
main.tf
provider "docker" { host = "tcp://127.0.0.1:2375" } resource "docker_container" "nitro-client" { image = "nitro-client" name = "nitro-client" networks = ["nitro_private_network"] ports { internal = 80 external = 80 } }
provider "docker" { host = "tcp://127.0.0.1:2375" } resource "docker_container" "nitro-client" { image = "${docker_image.nitro-client.latest}" name = "nitro-client" networks = ["nitro_private_network"] ports { internal = 80 external = 80 } } data "docker_registry_image" "nitro-client" { name = "d...
Adjust Terraform to Pull From Docker Hub
Adjust Terraform to Pull From Docker Hub
HCL
unknown
nitrotasks/nitro,CaffeinatedCode/nitro,nitrotasks/nitro
bbc9f906f3ea0d1ebb574ddc754258c6ab58769d
terraform/modules/tf_threat_intel_downloader/dynamodb.tf
terraform/modules/tf_threat_intel_downloader/dynamodb.tf
resource "aws_dynamodb_table" "threat_intel_ioc" { name = "${var.prefix}_streamalert_threat_intel_downloader" read_capacity = "${var.table_rcu}" write_capacity = "${var.table_wcu}" hash_key = "value" range_key = "type" attribute { name = "value" type = "S" } attribute { ...
resource "aws_dynamodb_table" "threat_intel_ioc" { name = "${var.prefix}_streamalert_threat_intel_downloader" read_capacity = "${var.table_rcu}" write_capacity = "${var.table_wcu}" hash_key = "value" attribute { name = "value" type = "S" } ttl { attribute_name = "expiration_...
Remove sort key from DynamoDB table.
[tf] Remove sort key from DynamoDB table.
HCL
apache-2.0
airbnb/streamalert,airbnb/streamalert
77f9ceac4eb3642d440fc46c75c4a15f952e6765
modules/gsuite_group/main.tf
modules/gsuite_group/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 bug in gsuite_group module that requires organizationViewer role
Fix bug in gsuite_group module that requires organizationViewer role organizationViewer role should not be necessary if domain is specified.
HCL
apache-2.0
terraform-google-modules/terraform-google-project-factory,terraform-google-modules/terraform-google-project-factory,terraform-google-modules/terraform-google-project-factory,terraform-google-modules/terraform-google-project-factory
45d0552c35161fa802f4edec072beffbd8b54e11
gcp/modules/gke-cluster/main.tf
gcp/modules/gke-cluster/main.tf
terraform { backend "gcs" {} } variable "project_id" {} variable "serviceaccount_key" {} module "gke_cluster" { source = "/exekube-modules/gke-cluster" project_id = "${var.project_id}" serviceaccount_key = "${var.serviceaccount_key}" initial_node_count = 1 node_type = "n1-sta...
terraform { backend "gcs" {} } variable "project_id" {} variable "serviceaccount_key" {} module "gke_cluster" { source = "/exekube-modules/gke-cluster" project_id = "${var.project_id}" serviceaccount_key = "${var.serviceaccount_key}" initial_node_count = 1 node_type = "n1-sta...
Disable basic auth and client certs
GPII-3340: Disable basic auth and client certs
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform
3c3846c4c07aaf833a235f08fc2f69e1bdc9ff39
records.tf
records.tf
resource "dnsimple_record" "alias" { domain = "tomohiro.me" name = "@" value = "tomohiro.github.io" type = "ALIAS" ttl = 600 }
resource "dnsimple_record" "naked" { domain = "tomohiro.me" name = "tomohiro.me" value = "103.203.90.2" type = "A" ttl = 600 } resource "dnsimple_record" "kloudsecwvrgwwvdrp" { domain = "kloudsecwvrgwwvdrp.tomohiro.me" name = "kloudsecwvrgwwvdrp" value = "103.203.90.2" ty...
Update DNS to using Kloudsec
Update DNS to using Kloudsec
HCL
mit
Tomohiro/tomohiro.me
823051bb1819f0e4ca38ad0352ade74674d67656
modules/do/droplet/variables.tf
modules/do/droplet/variables.tf
variable "depends_on" { type = "list" default = [] } variable "name" {} variable "region" {} variable "image" {} variable "ssh_keys" { type = "list" } variable "count" { default = 1 } variable "size" { default = "512mb" } variable "backups" { default = false } variable "ipv6" { default = false } ...
variable "depends_on" { default = [] } variable "name" {} variable "region" {} variable "image" {} variable "ssh_keys" { type = "list" } variable "count" { default = 1 } variable "size" { default = "512mb" } variable "backups" { default = false } variable "ipv6" { default = false } variable "private_n...
Fix `tags` and `depends_on` types
Fix `tags` and `depends_on` types There is no reason to specify type as it will be inferred from default value. Signed-off-by: Zabielski, Kamil <10e2e4f43aa646e14b86465408220e19d9a32e01@outlook.com>
HCL
apache-2.0
kwilczynski/terraform-templates
32a4f80c4c6f7d702679427d8c8596ce11e967f3
plans/plugins_jenkins_io.tf
plans/plugins_jenkins_io.tf
# # This terraform plan defines the resources necessary to host plugins_jenkins_io.jenkins.io # resource "azurerm_resource_group" "plugins_jenkins_io" { name = "${var.prefix}plugins_jenkins_io" location = "${var.location}" tags { env = "${var.prefix}" } } resource "azurerm_storage_account" "plugins_j...
Add azure storage blob for plugins.jenkins.io /INFRA-2414
Add azure storage blob for plugins.jenkins.io /INFRA-2414
HCL
mit
olblak/azure,olblak/azure,olblak/azure,jenkins-infra/azure
e2796e7b0d856639b1aa4d91ade945e64182425e
terraform/outputs.tf
terraform/outputs.tf
output "domain" { value = "${var.domain}" } output "kubernetes_nodes_elb_dns_name" { value = "${aws_elb.k8s_nodes.dns_name}" } output "kubernetes_nodes_elb_zone_id" { value = "${aws_elb.k8s_nodes.zone_id}" } output "kubernetes_security_group_id" { value = "${aws_security_group.kubernetes.id}" } output "main...
output "domain" { value = "${var.domain}" } output "internet_gateway_id" { value = "${aws_internet_gateway.outgoing.id}" } output "kubernetes_nodes_elb_dns_name" { value = "${aws_elb.k8s_nodes.dns_name}" } output "kubernetes_nodes_elb_zone_id" { value = "${aws_elb.k8s_nodes.zone_id}" } output "kubernetes_se...
Add Terraform output the Internet gateway.
Add Terraform output the Internet gateway.
HCL
mit
InQuicker/kaws
7f361b9ecff15fb90a6332554853311e92edfdd2
plan-patches/bosh-lite-gcp/terraform/bosh-lite_override.tf
plan-patches/bosh-lite-gcp/terraform/bosh-lite_override.tf
resource "google_compute_firewall" "bosh-director-lite" { name = "${var.env_id}-bosh-director-lite" network = "${google_compute_network.bbl-network.name}" source_ranges = ["0.0.0.0/0"] allow { ports = ["80", "443", "2222"] protocol = "tcp" } target_tags = ["${var.env_id}-bosh-director"] } resour...
resource "google_compute_firewall" "bosh-director-lite" { name = "${var.env_id}-bosh-director-lite" network = "${google_compute_network.bbl-network.name}" source_ranges = ["0.0.0.0/0"] allow { ports = ["80", "443", "2222"] protocol = "tcp" } target_tags = ["${var.env_id}-bosh-director"] } ...
Fix bbl-lite plan patch for terraform passthrough pr.
Fix bbl-lite plan patch for terraform passthrough pr. [#153953834]
HCL
apache-2.0
pivotal-cf-experimental/bosh-bootloader,pivotal-cf-experimental/bosh-bootloader
31d3c45d2388037f4ff3e3bc394891f2d44b93ce
test/fixtures/shared/variables.tf
test/fixtures/shared/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...
Make tests run in us-east4 by default
Make tests run in us-east4 by default
HCL
apache-2.0
terraform-google-modules/terraform-google-jenkins,terraform-google-modules/terraform-google-jenkins
ee1526aa0ae43576c370ec55cbfdb4c8c19631a8
test/fixtures/fabric_project/main.tf
test/fixtures/fabric_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...
Change list of enabled services due to issue with dependent services
Change list of enabled services due to issue with dependent services
HCL
apache-2.0
terraform-google-modules/terraform-google-project-factory,terraform-google-modules/terraform-google-project-factory,terraform-google-modules/terraform-google-project-factory,terraform-google-modules/terraform-google-project-factory
a7ace7a0363f57850ccc47535a5ea10d83830a1d
terraform/modules/antivirus-sns/main.tf
terraform/modules/antivirus-sns/main.tf
resource "aws_sns_topic" "s3_file_upload_notification" { name = "s3_file_upload_notification_${var.environment}" http_success_feedback_role_arn = "${aws_iam_role.sns_success_feedback.arn}" http_success_feedback_sample_rate = 100 http_failure_feedback_role_arn = "${aws_iam_role...
resource "aws_sns_topic" "s3_file_upload_notification" { name = "s3_file_upload_notification_${var.environment}" http_success_feedback_role_arn = "${aws_iam_role.sns_success_feedback.arn}" http_success_feedback_sample_rate = 100 http_failure_feedback_role_arn = "${aws_iam_role...
Extend sns topic delivery retries to an hour
Extend sns topic delivery retries to an hour This setup will retry once immediately, then 5 more times with a linear backoff with the first retry after 1 second and the last after just under an hour.
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
8c8116e7ef4ff394fd6dee8309a09ec66e9db047
Terraform/production/rds.tf
Terraform/production/rds.tf
module "rds" { source = "../modules/database" identifier = "collaction-${var.environment}" instance_class = var.rds_instance_class allocated_storage = var.rds_allocated_storage backup_retention_period = 7 performance_insights_enabled = true multi_az ...
module "rds" { source = "../modules/database" identifier = "collaction-${var.environment}" instance_class = var.rds_instance_class allocated_storage = var.rds_allocated_storage backup_retention_period = 7 performance_insights_enabled = false multi_az ...
Switch off performance insights (causing problems atm)
Switch off performance insights (causing problems atm)
HCL
agpl-3.0
CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction
42fa28b0753cd69a50999751fa064298080a7c67
modules/data-catalog-policy-tag/outputs.tf
modules/data-catalog-policy-tag/outputs.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...
Fix data catalog policy tag output.
Fix data catalog policy tag output.
HCL
apache-2.0
GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric
d7fc1c62fe7090a1b1618fa663a8a67076fe38fc
infra_critical/terraform/alb.tf
infra_critical/terraform/alb.tf
module "load_balancer" { source = "load_balancer" name = "api-wellcomecollection-org" vpc_id = "${local.vpc_id}" public_subnets = "${local.public_subnets}" certificate_domain = "api.wellcomecollection.org" top_level_host = "developers.wellcomecollection.org" top_level_path = "/developers" }
module "load_balancer" { source = "load_balancer" name = "api-wellcomecollection-org" vpc_id = "${local.vpc_id}" public_subnets = "${local.public_subnets}" certificate_domain = "api.wellcomecollection.org" top_level_host = "developers.wellcomecollection.org" top_level_path = "/" }
Fix the path that we redirect to at developers.wellcomecollection.org
Fix the path that we redirect to at developers.wellcomecollection.org
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
2a602b177b1d33755caae7f37f7339213e173374
config.hcl
config.hcl
backend "consul" { address = "{{consul_addr}}:{{consul_port}}" } #backend "aws" { # access_key = "AKIAJWVN5Z4FOFT7NLNA" # secret_key = "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" # region = "us-east-1" #} listener "tcp" { address = "127.0.0.1:8200" tls_disable = 1 }
backend "consul" { address = "{{consul_addr}}:{{consul_port}}" } #backend "aws" { # access_key = "AKIAJWVN5Z4FOFT7NLNA" # secret_key = "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" # region = "us-east-1" #} listener "tcp" { address = "0.0.0.0:8200" tls_disable = 1 }
Set TCP listen address to 0.0.0.0:8200 in order to do port forwarding from the container
Set TCP listen address to 0.0.0.0:8200 in order to do port forwarding from the container
HCL
apache-2.0
akranga/vault-aws
0939deeea3ec6491c68a7c0d46033a67889d2a15
tfmodules/discourse-common/main.tf
tfmodules/discourse-common/main.tf
data "aws_caller_identity" "current" {} resource "aws_elastic_beanstalk_application" "main" { name = "${var.app_name}" } resource "aws_s3_bucket" "main" { bucket = "discourse-sourcebundles-${data.aws_caller_identity.current.account_id}" tags = "${var.tags}" }
data "aws_caller_identity" "current" {} resource "aws_elastic_beanstalk_application" "main" { name = "${var.app_name}" } resource "aws_s3_bucket" "main" { bucket = "discourse-sourcebundles-${data.aws_caller_identity.current.account_id}" server_side_encryption_configuration { rule { apply_server_side_...
Enable default encryption on one more S3 bucket
Enable default encryption on one more S3 bucket
HCL
bsd-3-clause
ento/discourse_aws,ento/discourse_aws,ento/discourse_aws
aac5c32d99b6fffb9b9cb9406a4f49f301b41197
terraform/pingdom/pingdom.tf
terraform/pingdom/pingdom.tf
variable "pingdom_user" {} variable "pingdom_password" {} variable "pingdom_api_key" {} variable "pingdom_account_email" {} variable "apps_dns_zone_name" {} variable "env" {} variable "contact_ids" {} provider "pingdom" { user = "${var.pingdom_user}" password = "${var.pingdom_password}" api_key = "${var.pi...
variable "pingdom_user" {} variable "pingdom_password" {} variable "pingdom_api_key" {} variable "pingdom_account_email" {} variable "apps_dns_zone_name" {} variable "env" {} variable "contact_ids" {} provider "pingdom" { user = "${var.pingdom_user}" password = "${var.pingdom_password}" api_key = "${var.pi...
Set check URL for Pingdom HTTPS check
Set check URL for Pingdom HTTPS check So that Terraform doesn't attempt to set the URL on every run: Initialized blank state with remote state enabled! Remote state configured and pulled. pingdom_check.paas_http_healthcheck: Refreshing state... (ID: 2247550) pingdom_check.paas_db_healthcheck: Refreshi...
HCL
mit
alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf
5b732da3e38d09070cab9c6b362356efd7ceb949
cert.tf
cert.tf
#Gen Certs resource "null_resource" "ssl_gen" { provisioner "local-exec" { command = <<EOF ${ path.module }/init-cfssl \ ${ var.data_dir }/.cfssl \ ${ var.region } \ ${ var.internal-tld } \ ${ var.k8s-service-ip } EOF } provisioner "local-exec" { when = "destroy" on_failure = "continue" command ...
#Gen Certs resource "null_resource" "ssl_gen" { provisioner "local-exec" { command = <<EOF ${ path.module }/init-cfssl \ ${ var.data_dir }/.cfssl \ ${ var.region } \ ${ var.internal-tld } \ ${ var.k8s-service-ip } \ ${ var.internal_lb } \ ${ var.project } EOF } provisioner "local-exec" { when = "destroy...
Update Cert to Use Project DNS for ETCD
Update Cert to Use Project DNS for ETCD
HCL
apache-2.0
cncf/demo,cncf/demo,cncf/demo,cncf/demo
45baa8d2d18898835cb3bf87db9bf050704a9228
gcp/modules/helm-initializer/main.tf
gcp/modules/helm-initializer/main.tf
terraform { backend "gcs" {} } variable "secrets_dir" {} variable tiller_namespace { default = "kube-system" } # Install Tiller in kube-system namespace with cluster-admin access to all namespaces module "system_tiller" { source = "/exekube-modules/helm-initializer" secrets_dir = "${var.secrets_dir}" ...
terraform { backend "gcs" {} } variable "secrets_dir" {} variable tiller_namespace { default = "kube-system" } variable tiller_wait_period { default = "60" } # Install Tiller in kube-system namespace with cluster-admin access to all namespaces module "system_tiller" { source = "/exekube-modules/helm-initial...
Increase tiller_wait_period to 60 in helm-initializer
Increase tiller_wait_period to 60 in helm-initializer
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra
c3da691042b2373709ba465214df8609c16fa217
builds/terraform/scala_library/secrets_dir.tf
builds/terraform/scala_library/secrets_dir.tf
data "template_file" "aws_credentials" { template = <<EOF [default] aws_access_key_id=$${access_key_id} aws_secret_access_key=$${secret_access_key} EOF vars { access_key_id = "${aws_iam_access_key.travis_ci.id}" secret_access_key = "${aws_iam_access_key.travis_ci.secret}" } } resource "local_file" "...
Create the aws credentials file
Create the aws credentials file
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
1ea7c7517f51c069d7ae33f03899803e01c66074
terraform/cloudfoundry/router_elb.tf
terraform/cloudfoundry/router_elb.tf
resource "aws_elb" "cf_router" { name = "${var.env}-cf-router" subnets = ["${split(",", var.infra_subnet_ids)}"] idle_timeout = "${var.elb_idle_timeout}" cross_zone_load_balancing = "true" security_groups = [ "${aws_security_group.web.id}", "${aws_security_group.pingdom-probes-0.id}", "${aws_secur...
resource "aws_elb" "cf_router" { name = "${var.env}-cf-router" subnets = ["${split(",", var.infra_subnet_ids)}"] idle_timeout = "${var.elb_idle_timeout}" cross_zone_load_balancing = "true" security_groups = [ "${aws_security_group.web.id}", "${aws_security_group.pingdom-probes-0.id}", "${aws_secur...
Enable HTTP healthcheck on router ELB
Enable HTTP healthcheck on router ELB Allows to test gorouter via HAProxy instead of HAProxy alone. We now use the provided haproxy healthcheck frontend listening on port HTTP:82.
HCL
mit
jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf
0cdb07df0efbcd3c5e5646fe444adf8c45e5fb70
terraform/provisioners.tf
terraform/provisioners.tf
resource "null_resource" "generate_pki" { depends_on = ["aws_kms_key.pki"] provisioner "local-exec" { command = "kaws cluster genpki ${var.cluster} --domain ${var.domain} --kms-key ${aws_kms_key.pki.key_id} --region ${var.region}" } triggers { etcd_ca = "${file("clusters/${var.cluster}/etcd-ca.pem")}"...
resource "null_resource" "generate_pki" { depends_on = ["aws_kms_key.pki"] provisioner "local-exec" { command = "kaws cluster genpki ${var.cluster} --domain ${var.domain} --kms-key ${aws_kms_key.pki.key_id} --region ${var.region}" } }
Remove triggers from genpki null_resource.
Remove triggers from genpki null_resource.
HCL
mit
InQuicker/kaws
2ca26f471425b1635f901cb994535a3b1323433e
nat.tf
nat.tf
resource "aws_eip" "nat" { count = "${var.include_nat_gateway == "yes" ? 1 : 0}" vpc = true tags = { Name = "eip-nat-${var.component}-${var.deployment_identifier}" Component = "${var.component}" DeploymentIdentifier = "${var.deployment_identifier}" } } resource "aws_nat_gateway" "base" { count ...
resource "aws_eip" "nat" { count = "${var.include_nat_gateway == "yes" ? 1 : 0}" vpc = true tags = { Name = "eip-nat-${var.component}-${var.deployment_identifier}" Component = "${var.component}" DeploymentIdentifier = "${var.deployment_identifier}" } } resource "aws_nat_gateway" "base" { count ...
Add tasg for NAT gateway
Add tasg for NAT gateway
HCL
mit
tobyclemson/terraform-aws-base-networking,tobyclemson/terraform-aws-base-networking
27229b29c90e9495215cfb236226bb25533078a4
terraform/openstack/keypair_v2/main.tf
terraform/openstack/keypair_v2/main.tf
variable keypair_name {} variable public_key {} resource "openstack_compute_keypair_v2" "keypair" { name = "${var.keypair_name}" public_key = "${file(var.public_key)}" } output "keypair_name" { value = "${openstack_compute_keypair_v2.keypair.name}" } output "name" { value = "${openstack_compute_keypair_v2.ke...
Create new ssh keypair module
Create new ssh keypair module This module removes some of the openstack vars.
HCL
apache-2.0
ContainerSolutions/microservices-infrastructure,sehqlr/mantl,KaGeN101/mantl,CiscoCloud/microservices-infrastructure,datascienceinc/mantl,phnmnl/mantl,CiscoCloud/mantl,CiscoCloud/microservices-infrastructure,datascienceinc/mantl,mantl/mantl,phnmnl/mantl,KaGeN101/mantl,bitium/mantl,mantl/mantl,ContainerSolutions/microser...
534936ab5ac1547aaa37eebd076699084221a842
monitoring/terraform/lambda_update_service_list.tf
monitoring/terraform/lambda_update_service_list.tf
module "lambda_update_service_list" { source = "git::https://github.com/wellcometrust/terraform.git//lambda?ref=v1.0.0" s3_key = "lambdas/monitoring/update_service_list.zip" name = "update_service_list" description = "Publish ECS service status summary to S3" timeout = 10 environment_variables ...
module "lambda_update_service_list" { source = "git::https://github.com/wellcometrust/terraform.git//lambda?ref=v1.0.0" s3_key = "lambdas/monitoring/update_service_list.zip" name = "update_service_list" description = "Publish ECS service status summary to S3" timeout = 15 environment_variables ...
Increase the timeout on the update_service_list Lambda
Increase the timeout on the update_service_list Lambda
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
7e5704b866c2150b633da6e700cc4a0bafbe4ef6
builds/terraform/platform/secrets.tf
builds/terraform/platform/secrets.tf
data "template_file" "aws_credentials" { template = <<EOF [default] aws_access_key_id=$${access_key_id} aws_secret_access_key=$${secret_access_key} EOF vars { access_key_id = "${aws_iam_access_key.travis_ci.id}" secret_access_key = "${aws_iam_access_key.travis_ci.secret}" } } data "archive_file" "se...
data "template_file" "aws_credentials" { template = <<EOF [default] aws_access_key_id=$${access_key_id} aws_secret_access_key=$${secret_access_key} EOF vars { access_key_id = "${aws_iam_access_key.travis_ci.id}" secret_access_key = "${aws_iam_access_key.travis_ci.secret}" } } data "archive_file" "se...
Make sure we write the AWS config!
Make sure we write the AWS config!
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
ec6feb49e5e3677d2a6002122e524471d0d15270
terraform/cloudfoundry/shield_and_waf.tf
terraform/cloudfoundry/shield_and_waf.tf
resource "aws_shield_protection" "shield_for_app_gorouter_alb" { name = "${var.env}-app-gorouter-shield" resource_arn = "${aws_lb.cf_router_app_domain.arn}" } resource "aws_shield_protection" "shield_for_system_gorouter_alb" { name = "${var.env}-system-gorouter-shield" resource_arn = "${aws_lb.cf_router_system...
Enable AWS Shield protection for app and system domains
Enable AWS Shield protection for app and system domains AWS Shield [1] gives us DDoS protection on load balancers, CloudFront Distributions, Global Accelerator accelerators, EIPs, and Route53 resources. In this commit we activate it for the ALBs used for our application and system domains. [1] https://aws.amazon.com/...
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
3c56d9aad9ae2a453ba570670a9e3f70ca6ff93d
terraform/cloudfoundry/ssh_proxy_security_group.tf
terraform/cloudfoundry/ssh_proxy_security_group.tf
resource "aws_security_group" "sshproxy" { name = "${var.env}-sshproxy-cf" description = "Security group for web that allows TCP/2222 for ssh-proxy from the office" vpc_id = "${var.vpc_id}" egress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } ingress { ...
resource "aws_security_group" "sshproxy" { name = "${var.env}-sshproxy-cf" description = "Security group for web that allows TCP/2222 for ssh-proxy from the office" vpc_id = "${var.vpc_id}" egress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } ingress { ...
Allow deployer-concourse to access ssh proxy ELB.
Allow deployer-concourse to access ssh proxy ELB. This is necessary to allow us to run acceptance tests covering this feature.
HCL
mit
alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf
f66a7957a17ae2207773e6f0be486ef0217655f1
terraform/modules/iam-users/users/main.tf
terraform/modules/iam-users/users/main.tf
resource "aws_iam_user" "benjamin_gill" { name = "benjamingill" force_destroy = true } resource "aws_iam_user" "george_hill" { name = "georgehill" force_destroy = true } resource "aws_iam_user" "jamieeunson" { name = "jamieeunson" force_destroy = true } resource "aws_iam_user" ...
resource "aws_iam_user" "benjamin_gill" { name = "benjamingill" force_destroy = true } resource "aws_iam_user" "george_hill" { name = "georgehill" force_destroy = true } resource "aws_iam_user" "jamieeunson" { name = "jamieeunson" force_destroy = true } resource "aws_iam_user" ...
Add Tom Berey to AWS
Add Tom Berey to AWS Welcome to another new developer! Following the normal process: https://crown-commercial-service.github.io/digitalmarketplace-manual/managing-people-and-secret-things/accounts.html#aws
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
5bdd2d586a3a3304177fdc5f3fe99626750486a7
plans/variables.tf
plans/variables.tf
variable "subscription_id" {} variable "client_id" {} variable "client_secret" {} variable "tenant_id" {} variable "prefix" {} variable "location" { type = "string" default = "East US" } # Port used for Puppet agents to connect to a Puppet master variable "puppet_master_port" { default = 8140 } # Define...
variable "subscription_id" {} variable "client_id" {} variable "client_secret" {} variable "tenant_id" {} variable "prefix" {} variable "location" { type = "string" default = "East US" } # Port used for Puppet agents to connect to a Puppet master variable "puppet_master_port" { default = 8140 } # Define...
Define default ssh public key
Define default ssh public key
HCL
mit
jenkins-infra/azure,olblak/azure,olblak/azure,olblak/azure
4e1cd909c1be1bd0dcb9914a62321e9085d433c4
deploy/01-create-record.tf
deploy/01-create-record.tf
resource "null_resource" "ansible-provision" { depends_on = ["openstack_compute_floatingip_v2.controller-fip"] # Create list of student ip user password provisioner "local-exec" { command = "echo \"${var.prefix} ${var.user}@${openstack_compute_floatingip_v2.controller-fip.address} ${var.password}\" >> stude...
Add create-record to append to student-info
Add create-record to append to student-info
HCL
apache-2.0
inc0/kolla-ansible-workshop
7dbd32bb9da327f1ce307d307565119cfd211cc9
terraform/queues.tf
terraform/queues.tf
locals { queues = { # queue name => visibility timeout in seconds batch_ingest = 3600, bulk_access_control = 300, create_adaptive_playlist = 30, create_encode = 30, default = 300, delete_course ...
locals { queues = { # queue name => visibility timeout in seconds batch_ingest = 3600, bulk_access_control = 300, create_adaptive_playlist = 30, create_encode = 30, default = 300, delete_course ...
Extend WaveformJob timeout to 15 minutes
[terraform] Extend WaveformJob timeout to 15 minutes
HCL
apache-2.0
nulib/avalon,nulib/avalon,nulib/avalon,nulib/avalon
970b258d3dcdf366f51cb98d1b27a657c3e07fe8
gcp/modules/gcp-stackdriver-alerting/main.tf
gcp/modules/gcp-stackdriver-alerting/main.tf
terraform { backend "gcs" {} } variable "nonce" {} variable "domain_name" {} variable "project_id" {} variable "serviceaccount_key" {} variable "stackdriver_debug" { default = false } resource "template_dir" "resources" { source_dir = "${path.cwd}/resources" destination_dir = "${path.cwd}/resources_rend...
terraform { backend "gcs" {} } variable "nonce" {} variable "domain_name" {} variable "project_id" {} variable "serviceaccount_key" {} variable "stackdriver_debug" { default = false } resource "template_dir" "resources" { source_dir = "${path.cwd}/resources" destination_dir = "${path.cwd}/resources_rend...
Fix Terraform format in gcp-stackdriver-alerting
Fix Terraform format in gcp-stackdriver-alerting
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform
2ea8bfbba2d1a41d6665571f7289e37767e0c288
gcp/modules/cert-manager/service_account_iam.tf
gcp/modules/cert-manager/service_account_iam.tf
data "google_service_account" "gke_cluster_node" { account_id = "gke-cluster-node" project = "${var.project_id}" } data "google_service_account" "gke_cluster_pod_cert_manager" { account_id = "gke-cluster-pod-cert-manager" project = "${var.project_id}" } data "google_iam_policy" "gke_cluster_pod_cert_man...
Set permission on the pod-cert-manager svc account
GPII-3781: Set permission on the pod-cert-manager svc account
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform
e5289959830d49baee654b76564d7af3712858ea
tf/persistent/repo-ci-triggers.tf
tf/persistent/repo-ci-triggers.tf
# Copyright 2021 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
# Copyright 2021 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
Add e2e tests for Go.
Add e2e tests for Go. BUG=191643395 Change-Id: I31bff561862bf30a0d8a9e92debeb0f4cfee683e
HCL
apache-2.0
GoogleCloudPlatform/opentelemetry-operations-e2e-testing
fb32316d660e6478fb43301ef987acbbb0547bd1
infra/terraform/test-org/org/iam.tf
infra/terraform/test-org/org/iam.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 t...
/** * 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 t...
Add org-level IAM for test org
Add org-level IAM for test org
HCL
apache-2.0
GoogleCloudPlatform/cloud-foundation-toolkit,GoogleCloudPlatform/cloud-foundation-toolkit,GoogleCloudPlatform/cloud-foundation-toolkit,GoogleCloudPlatform/cloud-foundation-toolkit,GoogleCloudPlatform/cloud-foundation-toolkit
e3cc0144f3e07b293e997361aa258db56b2bf729
examples/aws-ec2-terraform/outputs.tf
examples/aws-ec2-terraform/outputs.tf
output "kubernetes-vpc-id" { value = "${aws_vpc.kubernetes-vpc.id}" } output "kubernetes-subnet-id" { value = "${aws_subnet.kubernetes-subnet.id}" } output "kubernetes-main-sg-id" { value = "${aws_security_group.kubernetes-main-sg.id}" } output "kubernetes-master-secure-config-repository" { value = "...
output "kubernetes-vpc-id" { value = "${aws_vpc.kubernetes-vpc.id}" } output "kubernetes-subnet-id" { value = "${aws_subnet.kubernetes-subnet.id}" } output "kubernetes-main-sg-id" { value = "${aws_security_group.kubernetes-main-sg.id}" } output "kubernetes-master-secure-config-repository" { value = "...
Build the URLs for ECRs
Build the URLs for ECRs
HCL
apache-2.0
weaveworks/kubernetes-anywhere,weaveworks/weave-kubernetes-anywhere,mikedanese/kubernetes-anywhere,rohitjogvmw/kubernetes-anywhere,errordeveloper/kubernetes-anywhere
3c0087470130f4118cb4a015bd18b7c7b668de53
terraform/environments/dev/firebase.tf
terraform/environments/dev/firebase.tf
#Creating a firbase project resource "google_project" "default" { provider = google-beta project_id = var.project_id name = var.project_name org_id = var.org_id } resource "google_firebase_project" "firebase_project" { provider = google-beta project = google_project.default.project_id }
# Enabling a firbase project resource "google_app_engine_application" "app" { provider = google-beta project = google_project.default.project_id location_id = var.region database_type = "CLOUD_FIRESTORE" }
Enable firestore without creating a project
Enable firestore without creating a project
HCL
apache-2.0
GoogleCloudPlatform/document-intake-accelerator,GoogleCloudPlatform/document-intake-accelerator,GoogleCloudPlatform/document-intake-accelerator,GoogleCloudPlatform/document-intake-accelerator
b364ec634de86fbcb233cb25f9cab3ba71721983
resources/scripts/spack-install/main.tf
resources/scripts/spack-install/main.tf
/** * Copyright 2021 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 2021 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...
Update spack variables to be lists if not defined
Update spack variables to be lists if not defined This commit sets variables that are used within the spack resource to be empty lists instead of null values if they are not defined within a deployment.
HCL
apache-2.0
GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit
076b5c153ffaecbdc20f588b5ed672fa3a3690cf
contrib/terraform/openstack/modules/network/outputs.tf
contrib/terraform/openstack/modules/network/outputs.tf
output "router_id" { value = "${openstack_networking_router_interface_v2.k8s.id}" } output "network_id" { value = "${openstack_networking_subnet_v2.k8s.id}" }
output "router_id" { value = "${openstack_networking_router_interface_v2.k8s.id}" } output "subnet_id" { value = "${openstack_networking_subnet_v2.k8s.id}" }
Return subnet_id as defined in kubespray.tf
Return subnet_id as defined in kubespray.tf
HCL
apache-2.0
Atoms/kubespray,kubernetes-incubator/kargo,insequent/kargo,kubernetes-incubator/kubespray,kubespray/kargo,kubernetes-sigs/kubespray,kubernetes-sigs/kubespray,kubernetes-incubator/kargo,kubernetes-incubator/kubespray,insequent/kargo,Atoms/kubespray,Atoms/kubespray,kubernetes-sigs/kubespray,Atoms/kubespray,kubespray/karg...
f9fa2edd1b126ed3a714041d23b500e92e2bfd67
data_science/terraform/notebooks/efs.tf
data_science/terraform/notebooks/efs.tf
resource "aws_security_group" "efs_security_group" { name = "${var.namespace}_efs_security_group" description = "Allow traffic between data science VMs and EFS" vpc_id = "${var.vpc_id}" ingress { from_port = 0 to_port = 0 protocol = "-1" self = true } egress { from_...
Add an EFS volume for the data_science notebooks
Add an EFS volume for the data_science notebooks
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
0a7a7eb6ec0c503a4b775844689564e87d829413
aws/terraform/document_storage.tf
aws/terraform/document_storage.tf
resource "aws_s3_bucket" "gnss_metadata_document_storage" { bucket = "gnss-metadata-document-storage-${var.environment}" acl = "public-read" cors_rule { allowed_headers = ["*"] allowed_methods = ["GET"] allowed_origins = ["*"] max_age_seconds = 3000 } } output "gnss_metadata_document_storag...
resource "aws_s3_bucket" "gnss_metadata_document_storage" { bucket = "gnss-metadata-document-storage-${var.environment}" acl = "public-read" cors_rule { allowed_headers = ["*"] allowed_methods = ["GET"] allowed_origins = ["*"] max_age_seconds = 3000 } } resource "aws_s3_bucket_policy" "docu...
Add bucket policy to allow cross account access to document storage
Add bucket policy to allow cross account access to document storage
HCL
bsd-3-clause
GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/Geodesy-Web-Services
7cbd4530219f7f2db4fec90d021c2bdddb1b400e
plans/release-core.tf
plans/release-core.tf
resource "azurerm_resource_group" "release-core" { name = "${var.prefix}releasecore" location = "${var.location}" } ### Release Certificate stored on key vault resource "azurerm_key_vault" "release-core" { name = "${var.prefix}releasecore" location = "${az...
Add release certificate and gpg storage account
Add release certificate and gpg storage account
HCL
mit
olblak/azure,olblak/azure,olblak/azure,jenkins-infra/azure
e06def6f4c36f713580274f7f574d9957a516f9a
terraform/modules/iam-common/admin.tf
terraform/modules/iam-common/admin.tf
resource "aws_iam_policy" "admin" { name = "Admin" policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "*", "Resource": "*", "Condition": { "Bool": { "aws:MultiFactorAuthPresent": true } } }, { "Effect...
resource "aws_iam_policy" "admin" { name = "Admin" policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "*", "Resource": "*", "Condition": { "Bool": { "aws:MultiFactorAuthPresent": true } } } ] } EOF } resourc...
Remove arn:aws:iam::${var.aws_dev_account_id}:role/s3-only references from terraform. This role is not created anywhere
Remove arn:aws:iam::${var.aws_dev_account_id}:role/s3-only references from terraform. This role is not created anywhere We have references to an s3-only role for the dev account. This isn't created anywhere and doesn't exist. arn:aws:iam::${var.aws_dev_account_id}:role/s3-only
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
4792d33174b006be334656e9b115f9d603b8be51
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 = "DNS resolution is failing on {{host.name}}" query = "${format("'dns.can_resolve'.over('deploy_env:%s').by('bosh-job','bosh-index').last(4).count_by_status()", var.env)...
Add Datadog monitors for DNS resolution on VMs
Add Datadog monitors for DNS resolution on VMs This adds 2 monitors around DNS resolution on each VM: 1 checks that DNS resolution works, the 2nd checks that it resolves in a timely manner. These are being added because we had a recent issue that we eventally tracked down to DNS resolution on one VM being flakey. In ...
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
efe93050607b630606c6d90f02b387c668d6f618
terraform/outputs.tf
terraform/outputs.tf
output "domain" { value = "${var.domain}" } output "internet_gateway_id" { value = "${aws_internet_gateway.outgoing.id}" } output "kubernetes_nodes_elb_dns_name" { value = "${aws_elb.k8s_nodes.dns_name}" } output "kubernetes_nodes_elb_zone_id" { value = "${aws_elb.k8s_nodes.zone_id}" } output "kubernetes_ro...
output "domain" { value = "${var.domain}" } output "internet_gateway_id" { value = "${aws_internet_gateway.outgoing.id}" } output "kubernetes_nodes_elb_dns_name" { value = "${aws_elb.k8s_nodes.dns_name}" } output "kubernetes_nodes_elb_zone_id" { value = "${aws_elb.k8s_nodes.zone_id}" } output "kubernetes_ro...
Add a Terraform output for the SSH bastion's security group ID.
Add a Terraform output for the SSH bastion's security group ID.
HCL
mit
InQuicker/kaws
dee631c28c5f9baf485fe068dac6210618acb4f6
variables.tf
variables.tf
variable "gcloud_credentials" { default = ".gcp/tf-dns-editor.json" } variable "gcloud_project" { default = "henrik-jonsson" } variable "gcloud_region" { default = "europe-west1" } variable "hkjnweb_ip" { default = "163.172.173.208" } variable "mon_ip" { default = "212.47.239.127" } variable "vpn_ip" { ...
variable "gcloud_credentials" { default = ".gcp/tf-dns-editor.json" } variable "gcloud_project" { default = "henrik-jonsson" } variable "gcloud_region" { default = "europe-west1" } variable "hkjnweb_ip" { default = "163.172.173.208" } variable "mon_ip" { default = "163.172.184.153" } variable "vpn_ip" { ...
Move mon, vpn and cities to new IP
Move mon, vpn and cities to new IP
HCL
mit
hkjn/hkjninfra,hkjn/hkjninfra,hkjn/hkjninfra
9905ca42d622cf7fce5ea9954e319fa4b575f995
gcp/modules/cert-manager/main.tf
gcp/modules/cert-manager/main.tf
terraform { backend "gcs" {} } 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" release_namespace =...
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" ...
Apply cert-manager resources on every run
Apply cert-manager resources on every run
HCL
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra
d8cfb6d8a7f0bdf774fdb78fe0ca37120ed9ae3d
terraform/datadog/aws.tf
terraform/datadog/aws.tf
resource "datadog_monitor" "ec2-cpu-credits" { name = "${format("%s EC2 CPU credits", var.env)}" type = "query alert" message = "${format("Instance is {{#is_warning}}low on{{/is_warning}}{{#is_alert}}out of{{/is_alert}} CPU credits and may perform badly. See: %s#cpu-credits @govpaas-ale...
resource "datadog_monitor" "ec2-cpu-credits" { name = "${format("%s EC2 CPU credits", var.env)}" type = "query alert" message = "${format("Instance is {{#is_warning}}low on{{/is_warning}}{{#is_alert}}out of{{/is_alert}} CPU credits and may perform badly. See: %s#cpu-credits @govpaas-ale...
Monitor CPU credits for RDS t2 instances
Monitor CPU credits for RDS t2 instances Similar to 1f33b77 for EC2 instances. I omitted this from the first PR because I thought we didn't have any RDS t2 instances, but BOSH has been since alphagov/paas-bootstrap@043f3dd. The use of the `deploy_env` tag depends on alphagov/paas-bootstrap#59 I've used `dbinstanceid...
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
c8b88828202707f10ce34d5696c5e30347d08a6d
nubis/terraform/inputs.tf
nubis/terraform/inputs.tf
# nubis-consul release 10 variable "ami" { } variable "aws_access_key" {} variable "aws_secret_key" {} variable "key_name" { description = "SSH key name in your AWS account for AWS instances." } variable "region" { default = "us-east-1" description = "The region of AWS, for AMI lookups." } variable "consul_s...
# nubis-consul release 10 variable "ami" { } variable "aws_access_key" {} variable "aws_secret_key" {} variable "key_name" { description = "SSH key name in your AWS account for AWS instances." } variable "region" { default = "us-east-1" description = "The region of AWS, for AMI lookups." } variable "consul_s...
Bring uptodate with the new comman user-data variables
Bring uptodate with the new comman user-data variables
HCL
mpl-2.0
tinnightcap/nubis-consul,gozer/nubis-consul,limed/nubis-consul,Nubisproject/nubis-consul,tinnightcap/nubis-consul,limed/nubis-consul,gozer/nubis-consul,gozer/nubis-consul,Nubisproject/nubis-consul,Nubisproject/nubis-consul
889d2e369bbd25c939f69d8bec39aa6c4143938d
terraform/modules/jenkins/jenkins/ec2.tf
terraform/modules/jenkins/jenkins/ec2.tf
provider "aws" { region = "eu-west-1" } resource "aws_instance" "jenkins" { ami = var.ami_id disable_api_termination = true # prevent this instance from being destroyed from the console instance_type = var.instance_type iam_instance_profile = var.jenkins_instance_profile ke...
provider "aws" { region = "eu-west-1" } resource "aws_instance" "jenkins" { ami = var.ami_id disable_api_termination = true # prevent this instance from being destroyed from the console instance_type = var.instance_type iam_instance_profile = var.jenkins_instance_profile ke...
Set larger size for root volume.
Set larger size for root volume. More disk space is needed by this volume. Note, it appears this change was already applied manually to the exising instance but not terraformed.
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
1f33b77c7688506b03e58817a457a3661501dca1
terraform/datadog/aws.tf
terraform/datadog/aws.tf
resource "datadog_monitor" "ec2-cpu-credits" { name = "${format("%s EC2 CPU credits", var.env)}" type = "query alert" message = "${format("Instance is {{#is_warning}}low on{{/is_warning}}{{#is_alert}}out of{{/is_alert}} on CPU credits and may perform badly. See: https://government-paas-...
Monitor CPU credits for t2 instances
Monitor CPU credits for t2 instances AWS t2 instance types have burstable CPU performance. They accumulate "credits" when not doing anything and then can consume the credits when they want to do CPU intensive work. When the credits run out, the instance will not be able to do CPU intensive work and will slow down. We ...
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
d014191dc4a0324f731f2b585dc163adbaa95818
monitoring/network.tf
monitoring/network.tf
module "network" { source = "git::https://github.com/wellcometrust/terraform.git//network?ref=v11.0.0" name = "${local.namespace}" cidr_block = "${local.vpc_cidr_block}" az_count = "2" } resource "aws_service_discovery_private_dns_namespace" "namespace" { name = "${local.namespace}" vpc = "${m...
module "network" { source = "git::https://github.com/wellcometrust/terraform.git//network?ref=v11.0.0" name = "${local.namespace}" cidr_block = "${local.vpc_cidr_block}" az_count = "2" } resource "aws_vpc_endpoint" "s3" { vpc_id = "${module.network.vpc_id}" service_name = "com.amazonaws.$...
Add a VPC endpoint for S3 in the monitoring stack
Add a VPC endpoint for S3 in the monitoring stack
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
522755d1331017eaa27fdb46874c3249d4ed57ac
platforms/metal/profiles.tf
platforms/metal/profiles.tf
// CoreOS Install Profile resource "matchbox_profile" "coreos_install" { name = "coreos-install" kernel = "/assets/coreos/${module.container_linux.version}/coreos_production_pxe.vmlinuz" initrd = [ "/assets/coreos/${module.container_linux.version}/coreos_production_pxe_image.cpio.gz", ] args = [ "...
// CoreOS Install Profile resource "matchbox_profile" "coreos_install" { name = "coreos-install" kernel = "/assets/coreos/${module.container_linux.version}/coreos_production_pxe.vmlinuz" initrd = [ "/assets/coreos/${module.container_linux.version}/coreos_production_pxe_image.cpio.gz", ] args = [ "...
Add initrd argument to kernel cmdline
platforms/metal: Add initrd argument to kernel cmdline Solution as described here: https://github.com/coreos/docs/commit/3c4bcacd0081e534c5b4943afde5cf1c0a7753a6 Relevant links: coreos/bugs#1239 http://ipxe.org/appnote/debian_preseed Fixes #2345
HCL
apache-2.0
aknuds1/tectonic-installer,cpanato/tectonic-installer,lander2k2/tectonic-installer,zbwright/tectonic-installer,rithujohn191/tectonic-installer,justaugustus/tectonic-installer,cpanato/tectonic-installer,kyoto/tectonic-installer,alexsomesan/tectonic-installer,rithujohn191/tectonic-installer,coreos/tectonic-installer,zbwr...
49b7595f20e74ef5c0c5a2b56f44f16788099938
Terraform/clientwebapp.tf
Terraform/clientwebapp.tf
terraform { backend "azurerm" { storage_account_name = "__terraformstorageaccount__" container_name = "__terraformcontainer__" key = "terraform.tfstate" access_key = "__storagekey__" } } provider "azurerm" { } resource "azurerm_resource_group" "devops_portal" { ...
terraform { backend "azurerm" { storage_account_name = "__terraformstorageaccount__" container_name = "__terraformcontainer__" key = "terraform.tfstate" access_key = "__storagekey__" } } provider "azurerm" { } resource "azurerm_resource_group" "devops_portal" { ...
Fix app service plan terraform resource
Fix app service plan terraform resource
HCL
mit
Gary-Moore/DevOps-Portal,Gary-Moore/DevOps-Portal,Gary-Moore/DevOps-Portal,Gary-Moore/DevOps-Portal
0641c6492ed77bb8469aacd6f51ebd33d12866e4
modeling/main.tf
modeling/main.tf
# Configure the AWS Provider provider "aws" { region = "us-east-2" } # Create a web server resource "aws_spot_instance_request" "gpu" { ami = "ami-4c614629" # Deep learning AMI on what-is-my-fish AWS account instance_type = "p2.xlarge" spot_price = "0.20" iam_instance_profile = "Modeler" subnet_id = "sub...
Add terraform configuration for creating a GPU instance on AWS for modeling
Add terraform configuration for creating a GPU instance on AWS for modeling
HCL
mit
matthew-sochor/fish.io.ai,matthew-sochor/fish.io.ai,matthew-sochor/fish.io.ai,matthew-sochor/fish.io.ai
9a8ce5a4c25725e404310ff7d02047d8313bf25b
variables.tf
variables.tf
variable "vpc_cidr" { description = "The CIDR to use for the VPC. Required." } variable "region" { description = "The region into which to deploy the VPC. Required." } variable "availability_zones" { description = "The availability zones for which to add subnets. Required." } variable "component" { description...
variable "vpc_cidr" { description = "The CIDR to use for the VPC." } variable "region" { description = "The region into which to deploy the VPC." } variable "availability_zones" { description = "The availability zones for which to add subnets." } variable "component" { description = "The component this network...
Remove redundant information from variable descriptions.
Remove redundant information from variable descriptions.
HCL
mit
tobyclemson/terraform-aws-base-networking,tobyclemson/terraform-aws-base-networking
9d7ce78df2e711f3c04df89c884379bddde16ccc
tests/modules/organization-policy/fixture/versions.tf
tests/modules/organization-policy/fixture/versions.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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Enable experimental feature for the test fixture
Enable experimental feature for the test fixture
HCL
apache-2.0
GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric
9c5e5864f7f517f81f708fe701c9aa82a7f07d33
terraform/modules/iam-users/users/main.tf
terraform/modules/iam-users/users/main.tf
resource "aws_iam_user" "andrew_chong" { name = "andrewchong" force_destroy = true } resource "aws_iam_user" "ben_vandersteen" { name = "benvandersteen" force_destroy = true } resource "aws_iam_user" "brendan_barber" { name = "brendanbutler" force_destroy = true } resource "aws...
resource "aws_iam_user" "ben_vandersteen" { name = "benvandersteen" force_destroy = true } resource "aws_iam_user" "chris_wynne" { name = "chriswynne" force_destroy = true } resource "aws_iam_user" "kat_stevens" { name = "katstevens" force_destroy = true } resource "aws_iam_use...
Remove SW, GL, PT, DH, AC, LB
Remove SW, GL, PT, DH, AC, LB
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
1e752230a106a89abc9e276d5e92358ad2c63663
terraform/global/topics/main.tf
terraform/global/topics/main.tf
provider "aws" { region = "us-east-1" } terraform { backend "s3" { bucket = "state.kaak.us" key = "terraform/global/topics.tfstate" region = "us-east-1" } } /* * Given their importance, I should probably specify delivery policies for these * topics. */ resource "aws_sns_topic" "critical" { name...
provider "aws" { region = "us-east-1" } terraform { backend "s3" { bucket = "state.kaak.us" key = "terraform/global/topics.tfstate" region = "us-east-1" } } /* * Given their importance, I should probably specify delivery policies for these * topics. */ resource "aws_sns_topic" "critical" { name...
Add topic outputs for critical, warn, and info
Add topic outputs for critical, warn, and info
HCL
mit
kelledge/idkfa
8ffeab41b79f0323974685e99f476476d0cfa308
azure/output.tf
azure/output.tf
output "fqdn_k8s" { value = "${ module.master.fqdn_lb}" } output "bastion_ip" { value = "${ module.bastion.bastion_ip}" } output "bastion_fqdn" { value = "${ module.bastion.bastion_fqdn}" } output "ssh_key_setup" { value = "eval $(ssh-agent) ; ssh-add ${ var.data_dir }/.ssh/id_rsa"} output "ssh_via_bastion" { value = "...
output "fqdn_k8s" { value = "${ module.master.fqdn_lb}" } # output "bastion_ip" { value = "${ module.bastion.bastion_ip}" } # output "bastion_fqdn" { value = "${ module.bastion.bastion_fqdn}" } output "ssh_key_setup" { value = "eval $(ssh-agent) ; ssh-add ${ var.data_dir }/.ssh/id_rsa"} # output "ssh_via_bastion" { val...
Disable Bastion Outputs for Azure
Disable Bastion Outputs for Azure
HCL
apache-2.0
cncf/cross-cloud
cc8aaa3c35e46707b70d269a2f4e4dcf53212048
packet/resolv.tf
packet/resolv.tf
#Configure Resolve.conf resource "null_resource" "resolv_conf" { provisioner "local-exec" { command = <<EOF echo -e "nameserver "${ module.master.nameserver }"\n$(cat /etc/resolv.conf)" > /etc/resolv.conf echo -e "nameserver "${ module.master.nameserver }"\n$(cat "${ var.data_dir }"/kubeconfig)" >> "${ var.data_...
#Configure Resolve.conf resource "null_resource" "resolv_conf" { provisioner "local-exec" { command = <<EOF echo -e "nameserver "${ module.master.nameserver }"\n$(cat /etc/resolv.conf)" > /etc/resolv.conf echo -e "#nameserver "${ module.master.nameserver }" >> "${ var.data_dir }"/kubeconfig EOF } }
Append Namesever to end of Kubeconfig
Append Namesever to end of Kubeconfig
HCL
apache-2.0
cncf/cross-cloud
43df6d31b9b8ebf5a8aac8af8b01463528765a6f
terraform/modules/iam-users/users/main.tf
terraform/modules/iam-users/users/main.tf
resource "aws_iam_user" "argyris_galamatis" { name = "argyrisgalamatis" force_destroy = true } resource "aws_iam_user" "kat_stevens" { name = "katstevens" force_destroy = true } resource "aws_iam_user" "louise_ryan" { name = "louiseryan" force_destroy = true } resource "aws_iam...
resource "aws_iam_user" "argyris_galamatis" { name = "argyrisgalamatis" force_destroy = true } resource "aws_iam_user" "kat_stevens" { name = "katstevens" force_destroy = true } resource "aws_iam_user" "louise_ryan" { name = "louiseryan" force_destroy = true } resource "aws_iam...
Add Gideon IAM user, remove Rob
Add Gideon IAM user, remove Rob
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
df3f3cf1be06cffc6a14f76d5f0c539e1ed1550a
terraform/cloudfoundry/buckets.tf
terraform/cloudfoundry/buckets.tf
resource "aws_s3_bucket" "droplets-s3" { bucket = "${var.env}-cf-droplets" acl = "private" force_destroy = "true" } resource "aws_s3_bucket" "buildpacks-s3" { bucket = "${var.env}-cf-buildpacks" acl = "private" force_destroy = "true" } resource "aws_s3_bucket" "packages-s3" { bucket = "${v...
resource "aws_s3_bucket" "droplets-s3" { bucket = "${var.env}-cf-droplets" acl = "private" force_destroy = "true" } resource "aws_s3_bucket" "buildpacks-s3" { bucket = "${var.env}-cf-buildpacks" acl = "private" force_destroy = "true" } resource "aws_s3_bucket" "packages-s3" { bucket = "${v...
Create bucket for test artifacts
Create bucket for test artifacts We want to store the CF_TRACE output from acceptance and smoke tests. We do not want to output it in Concourse, so we will upload the files to a private bucket.
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
3ce6e72e56dfe6e04e8c3ccbcf61c6bbea9d1671
aws/modules/worker/ec2.tf
aws/modules/worker/ec2.tf
resource "aws_instance" "worker" { count = "${ var.worker_node_count }" ami = "${ var.ami_id }" iam_instance_profile = "${ var.instance_profile_name }" instance_type = "${ var.instance_type }" key_name = "${ var.aws_key_name }" source_dest_check = false associate_public_ip_address = false subnet_id = ...
resource "aws_instance" "worker" { count = "${ var.worker_node_count }" ami = "${ var.ami_id }" iam_instance_profile = "${ var.instance_profile_name }" instance_type = "${ var.instance_type }" key_name = "${ var.aws_key_name }" source_dest_check = false associate_public_ip_address = false subnet_id = ...
Select worker_cloud_init data based on node count
Select worker_cloud_init data based on node count
HCL
apache-2.0
cncf/cross-cloud
ff90b77112dc0c9f212567b6ff22e2fe164f8af5
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:concourse.build.finished{bosh-depl...
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-depl...
Fix continuous smoke tests graph
Fix continuous smoke tests graph The metric sent by Concourse is "job" instead of "bosh-job".
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
60a7ed38fb3fbe47bbeea254f36470c9f1ee713c
terraform/main.tf
terraform/main.tf
provider "libvirt" { uri = "qemu:///system" } resource "libvirt_volume" "grid-qcow2" { name = "grid${count.index}-qcow2" pool = "default" format = "qcow2" source = "/home/vdloo/images/grid0.qcow2" count = 20 } resource "libvirt_domain" "grid" { name = "grid${count.index}" memory = "1024" vcpu = 1 ...
provider "libvirt" { uri = "qemu:///system" } resource "libvirt_volume" "grid-qcow2" { name = "grid${count.index}-qcow2" pool = "default" format = "qcow2" source = "/home/vdloo/images/grid0.qcow2" count = 5 } resource "libvirt_domain" "grid" { name = "grid${count.index}" memory = "10240" vcpu = 2 ...
Revert "do not use macvtap but internal network instead"
Revert "do not use macvtap but internal network instead"
HCL
apache-2.0
vdloo/simulacra,vdloo/simulacra,vdloo/simulacra,vdloo/simulacra
afb5f337080fd41e9a3628d33f71616dd01a3498
templates/emr/terraform/modules/emr/security_groups.tf
templates/emr/terraform/modules/emr/security_groups.tf
resource "aws_security_group" "master" { description = "Security group for master node" vpc_id = "${data.aws_vpc.main.id}" revoke_rules_on_delete = true ingress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = [ "0.0.0.0/0"] } egress { from_port = 0 to_port = 0 pr...
resource "aws_security_group" "master" { description = "Security group for master node" vpc_id = "${data.aws_vpc.main.id}" revoke_rules_on_delete = true ingress { from_port = 54321 to_port = 54321 protocol = "tcp" cidr_blocks = [ "0.0.0.0/0"] } egress { from_port = 0 to_port =...
Fix ingress for master node
EMR: Fix ingress for master node
HCL
apache-2.0
michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3
1e867aa18d6cd2c5b98c48f28cacc78a3705b238
modules/do/droplet/variables.tf
modules/do/droplet/variables.tf
variable "depends_on" { type = "list" default = [] } variable "name" {} variable "region" {} variable "image" {} variable "ssh_keys" { type = "list" } variable "count" { default = 1 } variable "size" { default = "512mb" } variable "backups" { default = "false" } variable "ipv6" { default = "false"...
variable "depends_on" { type = "list" default = [] } variable "name" {} variable "region" {} variable "image" {} variable "ssh_keys" { type = "list" } variable "count" { default = 1 } variable "size" { default = "512mb" } variable "backups" { default = false } variable "ipv6" { default = false } ...
Fix `backups`, `ipv6`, `private_networking` types
Fix `backups`, `ipv6`, `private_networking` types Signed-off-by: Zabielski, Kamil <10e2e4f43aa646e14b86465408220e19d9a32e01@outlook.com>
HCL
apache-2.0
kwilczynski/terraform-templates
7916dad9d4d46b7d92610268e2149bcdb7ff7b34
terraform/modules/s3-document-bucket/variables.tf
terraform/modules/s3-document-bucket/variables.tf
variable "read_object_roles" { type = "list" } variable "write_object_roles" { type = "list" } variable "list_bucket_roles" { type = "list" } variable "bucket_name" {} variable "environment" {} variable "log_bucket_name" {}
variable "bucket_name" { description = "(Required) A name our S3 bucket, will be formetted like 'digitalmarketplace-{bucket_name}-{environment}-{environment}'." } variable "environment" { description = "(Required) A suffix for our S3 bucket, see above." } variable "log_bucket_name" { description = "(Required) A...
Add variable descriptions in S3 document bucket module.
Add variable descriptions in S3 document bucket module.
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
7bbc1259f92b7e7d97a6a3b69c75933c1f68a6f0
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 = "0.40" } variable "profile" { type = "string" default = "Modeler" } variable "subnet" { type = "string" default = "subnet-6347d50a" } # T...
Increase hard disk space on jump instance
Increase hard disk space on jump instance
HCL
mit
matthew-sochor/trail-cam-detector,matthew-sochor/trail-cam-detector
05d924f2ce75fde85c3bf91b11686db5caa2041e
.hashibot.hcl
.hashibot.hcl
behavior "remove_labels_on_reply" "remove_stale" { labels = ["waiting-response", "stale"] only_non_maintainers = true } poll "closed_issue_locker" "locker" { schedule = "0 50 1 * * *" closed_for = "720h" # 30 days max_issues = 500 sleep_between_issues = "5s" message =...
Enable Hashibot w/ basic behaviors
Enable Hashibot w/ basic behaviors
HCL
mpl-2.0
hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk
a9bc0e79605d48f6b6b6a4090a90d51379984470
gcp/modules/gke-cluster/main.tf
gcp/modules/gke-cluster/main.tf
terraform { backend "gcs" {} } variable "project_id" {} variable "serviceaccount_key" {} module "gke_cluster" { source = "/exekube-modules/gke-cluster" project_id = "${var.project_id}" serviceaccount_key = "${var.serviceaccount_key}" initial_node_count = 2 node_type = "n1-sta...
terraform { backend "gcs" {} } variable "project_id" {} variable "serviceaccount_key" {} module "gke_cluster" { source = "/exekube-modules/gke-cluster" project_id = "${var.project_id}" serviceaccount_key = "${var.serviceaccount_key}" initial_node_count = 1 node_type = "n1-sta...
Add us-central1-b, us-central1-c into additional_zones of gke-cluster module
Add us-central1-b, us-central1-c into additional_zones of gke-cluster module
HCL
bsd-3-clause
mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra
a3c5e7140595313f326a3aec725837838596272c
fixtures/aws/example.tf
fixtures/aws/example.tf
provider "aws" { access_key = "${var.access_key}" secret_key = "${var.secret_key}" region = "${var.region}" } resource "aws_s3_bucket_object" "s3_object" { key = "${var.object_key}" bucket = "${var.bucket}" content = "${var.object_content}" } # used to verify error handling resource "aws...
provider "aws" { access_key = "${var.access_key}" secret_key = "${var.secret_key}" region = "${var.region}" } resource "aws_s3_bucket_object" "s3_object" { key = "${var.object_key}" bucket = "${var.bucket}" content = "${var.object_content}" } # used to verify error handling resource "aws...
Update fake arn so that it passes TF validation
Update fake arn so that it passes TF validation - Terraform now regexes the arn before uploading
HCL
mit
ljfranklin/terraform-resource,ljfranklin/terraform-resource,amohemed/terraform-resource,amohemed/terraform-resource
866cb16ff4595c775b0b37243e8b2f4be721348a
deployment/terraform/aws/private-sentries/vpc_peering.tf
deployment/terraform/aws/private-sentries/vpc_peering.tf
module "vpc_peering" { source = "grem11n/vpc-peering/aws" version = "4.1.0" providers = { aws.this = aws aws.peer = aws.peer } this_vpc_id = module.this_vpc.vpc_id peer_vpc_id = var.validator_vpc.vpc_id this_rts_ids = [element(module.this_vpc.public_route_table_ids, 0)] ...
module "this_vpc_peering" { source = "grem11n/vpc-peering/aws" version = "4.1.0" providers = { aws.this = aws aws.peer = aws.peer } this_vpc_id = module.this_vpc.vpc_id peer_vpc_id = var.validator_vpc.vpc_id this_rts_ids = [element(module.this_vpc.public_route_table_ids, ...
Rename Private Sentry VPC peering module
Rename Private Sentry VPC peering module
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
bbf3295c728fee4e7f80cc7255e1acbecf081910
submodules/project_cleanup/variables.tf
submodules/project_cleanup/variables.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...
Remove default from region variable
Remove default from region variable
HCL
apache-2.0
terraform-google-modules/terraform-google-scheduled-function
0406feab2bb2ae6ad8506dde67bd5ea074811251
tls/output.tf
tls/output.tf
output "ca" { value = "${ tls_self_signed_cert.ca_cert.cert_pem }" } output "etcd" { value = "${ tls_locally_signed_cert.etcd_cert.cert_pem }" } output "etcd_key" { value = "${ tls_private_key.etcd_key.private_key_pem }" } output "apiserver" { value = "${ tls_locally_signed_cert.apiserver_cert.cert_pem}" } output "ap...
output "ca" { value = "${ tls_self_signed_cert.ca_cert.cert_pem }" } output "etcd" { value = "${ tls_locally_signed_cert.etcd_cert.cert_pem }" } output "etcd_key" { value = "${ tls_private_key.etcd_key.private_key_pem }" } output "apiserver" { value = "${ tls_locally_signed_cert.apiserver_cert.cert_pem}" } output "ap...
Remove Output for ServiceAccount Certs
Remove Output for ServiceAccount Certs
HCL
apache-2.0
cncf/cross-cloud
dede765147fe940a6412ffcdd531a80ea797b46a
Terraform/production/vars.tf
Terraform/production/vars.tf
variable "environment" { description = "The name of this environment" default = "prod" } variable "imageversion" { description = "The tagname of the image to deploy" } variable "api_desired_count" { description = "The desired number of instances of the API container" default = 0 } variable "api_cpu" { de...
variable "environment" { description = "The name of this environment" default = "prod" } variable "imageversion" { description = "The tagname of the image to deploy" } variable "api_desired_count" { description = "The desired number of instances of the API container" default = 0 } variable "api_cpu" { de...
Add production database DNS entry
Add production database DNS entry
HCL
agpl-3.0
CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction
6a5a18a34ffafdbde01f4317bde6bdccfea7e85a
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" "jonathan_kerr" { name = "jonathankerr" force_destroy = true } resource "aws_iam_user" "kat_stevens" { name = "katstevens" force_destroy = true } resource "aws_iam...
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 ...
Remove Jonathan, add Ares from IAM users
Remove Jonathan, add Ares from IAM users
HCL
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
7291fb69bebdfd44d44c159f1cdf4781c2346ef7
terraform/outputs.tf
terraform/outputs.tf
output "domain" { value = "${var.domain}" } output "region" { value = "${var.region}" } output "vpc" { value = "${aws_vpc.kubernetes.id}" }
output "domain" { value = "${var.domain}" } output "kubernetes_security_group_id" { value = "${aws_security_group.kubernetes.id}" } output "region" { value = "${var.region}" } output "vpc_id" { value = "${aws_vpc.kubernetes.id}" }
Add a Terraform output for the Kubernetes security group.
Add a Terraform output for the Kubernetes security group.
HCL
mit
InQuicker/kaws
1b6a221ed0bb230a9eef30196b600399847dadb5
terraform/route53.tf
terraform/route53.tf
data "aws_route53_zone" "selected" { name = "${var.domain}" } resource "aws_route53_record" "ses_inbound_mx" { zone_id = "${data.aws_route53_zone.selected.zone_id}" name = "${var.domain}" type = "MX" ttl = "300" records = ["10 inbound-smtp.us-east-1.amazonaws.com"] } resource "aws_route53_record...
data "aws_route53_zone" "selected" { name = "${var.domain}" } resource "aws_route53_record" "ses_inbound_mx" { zone_id = "${data.aws_route53_zone.selected.zone_id}" name = "${var.domain}" type = "MX" ttl = "300" records = ["10 inbound-smtp.${data.aws_region.current.name}.amazonaws.com"] } resour...
Use variable AWS region for SES receiver
Use variable AWS region for SES receiver
HCL
mit
DavidWittman/serverless-southwest-check-in
4498c1e4b31350e1cb5d4ddf30c92ca10a8c99a4
consul-template/config.d/main.hcl
consul-template/config.d/main.hcl
# Only passable by argument line instead option: # -consul / CONSUL_HTTP_ADDR # -token / CONSUL_TOKEN # VAULT_ADDR # VAULT_TOKEN retry = "10s" max_stale = "10m" vault { renew = true ssl { enabled = false } } ssl { enabled = false } syslog { enabled = false facility = "LOCAL0" } deduplicate { e...
# Only passable by argument line instead option: # -consul / CONSUL_HTTP_ADDR # -token / CONSUL_TOKEN # VAULT_ADDR # VAULT_TOKEN retry = "10s" max_stale = "10m" vault { renew_token = true ssl { enabled = false } } ssl { enabled = false } syslog { enabled = false facility = "LOCAL0" } deduplicate...
Migrate consul-template vault.renew option key name to new vault.renew_token.
Migrate consul-template vault.renew option key name to new vault.renew_token.
HCL
mit
strarsis/docker-nginx-consul-template