conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add required terraform version in nsxt stage\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You m... | hcl | chosen |
[
{
"from": "human",
"value": "Add an output to make 'make sshna' work\n"
},
{
"from": "gpt",
"value": "resource \"terraform_state\" \"vpc\" {\n backend = \"http\"\n config {\n address = \"https://raw.githubusercontent.com/${var.github_username}/terraform-example-vpc/master/${replace(... | hcl | chosen |
[
{
"from": "system",
"value": "Add S3 Backend for State\n"
},
{
"from": "human",
"value": "# Configure the Microsoft Azure Provider\nprovider \"google\" {\n #credentials = \"${file(\"gce.json\")}\"\n project = \"${ var.project }\"\n region = \"${ var.region }\"\n}\n\nprovider \"dnsimp... | hcl | chosen |
[
{
"from": "system",
"value": "Remove Jonathan from IAM users\n"
},
{
"from": "human",
"value": "resource \"aws_iam_user\" \"ben_vandersteen\" {\n name = \"benvandersteen\"\n force_destroy = true\n}\n\nresource \"aws_iam_user\" \"argyris_galamatis\" {\n name = \"argyrisgalama... | hcl | chosen |
[
{
"from": "system",
"value": "Upgrade aws provider to 4.36.1\n"
},
{
"from": "human",
"value": "terraform {\n required_providers {\n aws = {\n source = \"hashicorp/aws\"\n version = \"~>4.25.0\"\n }\n random = {\n source = \"hashicorp/random\"\n version = \"~>3.4.... | hcl | chosen |
[
{
"from": "system",
"value": "Update to latest NAT instance, remove provisioning as this is provided by AWS and correct subnet name\n"
},
{
"from": "human",
"value": "/* NAT/VPN server */\nresource \"aws_instance\" \"nat\" {\n ami = \"ami-5c82fd2f\"\n instance_type = \"t2.nano\"\n subnet_id =... | hcl | chosen |
[
{
"from": "system",
"value": "Change terraform to use GCS\n"
},
{
"from": "human",
"value": "/*\nThis file defines:\n- Required Terraform version\n- Required provider versions\n- Storage backend details\n- GCP project configuration\n*/\n\nterraform {\n required_version = \">= 0.12.6\"\n\n back... | hcl | chosen |
[
{
"from": "system",
"value": "Add optional fields to avoid noise from terraform plan\n\nThese two fields are the ones that cause terraform complaining something is changed when there is no config change at all\n"
},
{
"from": "human",
"value": "# Copyright 2021 Google LLC\n#\n# Licensed under th... | hcl | chosen |
[
{
"from": "system",
"value": "Update for latest provider versions in July 2018.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * ... | hcl | chosen |
[
{
"from": "system",
"value": "Add briefs frontend to application logs module\n\nThe new briefs frontend needs application logs setting up, the same way\nwe do for the other apps.\n"
},
{
"from": "human",
"value": "variable \"environment\" {}\nvariable \"retention_in_days\" {}\nvariable \"app_nam... | hcl | chosen |
[
{
"from": "system",
"value": "Add admin ip range here\n"
},
{
"from": "human",
"value": "module \"mesos\" {\n source = \"github.com/bobtfish/tf_aws_mesos\"\n adminlbs = \"1\"\n lbs = \"2\"\n masters =... | hcl | chosen |
[
{
"from": "system",
"value": "Change alarm on missing logs from 5 x 60s to 1 x 300s to keep with rest of alert periods\n\n- PR #540 introduced the 5 evaluation periods to solve an issue where alarm did not raise\n for 30 minutes when search api app was down. This change should not drastically impact\n the... | hcl | chosen |
[
{
"from": "system",
"value": "Move missing logs to 5 minutes to cause to trigger at 12ish mins\n"
},
{
"from": "human",
"value": "// It's worth noting here that this alarm can never be triggered by the statistic comparison.\n// AWS doesn't record a metric if the value is 0\n// The alarm will be ... | hcl | chosen |
[
{
"from": "system",
"value": "Fix missing changes for the alerts\n\nSwitch to a variable for the domain to monitor.\n\nSigned-off-by: Arnaud Meukam <96190fcd0798f0afa72279990e31ddc33e4f2ea2@gmail.com>\n"
},
{
"from": "human",
"value": "/*\nCopyright 2022 The Kubernetes Authors.\n\nLicensed under... | hcl | chosen |
[
{
"from": "system",
"value": "Use newly released terraform modules\n"
},
{
"from": "human",
"value": "module \"service\" {\n source = \"git::https://github.com/wellcometrust/terraform.git//ecs/modules/service/prebuilt/load_balanced?ref=allow-tcp-target-groups\"\n\n service_name = \"${var... | hcl | chosen |
[
{
"from": "system",
"value": "[SW-1164] Fix wrong default template arg value\n"
},
{
"from": "human",
"value": "##\n## Input Variables\n##\nvariable \"aws_access_key\" {}\nvariable \"aws_secret_key\" {}\nvariable \"aws_vpc_id\" {}\nvariable \"aws_subnet_id\" {}\n\nvariable \"aws_ssh_public_key\"... | hcl | chosen |
[
{
"from": "system",
"value": "Fix typo in bastion host value\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a co... | hcl | chosen |
[
{
"from": "system",
"value": "Add an Azure Container Registry to the infra plane\n\nThis is not yet being utilized by AKS, but should be\n"
},
{
"from": "human",
"value": "# This Terraform plan is responsible for the Code Valet control plane\n#\n# As described (loosely) in the README, the contro... | hcl | chosen |
[
{
"from": "system",
"value": "Replace count reference in service_projects output\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n *... | hcl | chosen |
[
{
"from": "human",
"value": "Check in module for testing\n"
},
{
"from": "gpt",
"value": "# We intentionally have an AWS provider block nested within this module so that we can have an integration test that\n# checks if the aws-provider-patch command helps to work around https://github.com/hashi... | hcl | chosen |
[
{
"from": "system",
"value": "Update use new hcl for storage backend syntax.\n"
},
{
"from": "human",
"value": "backend \"s3\" {\n bucket = \"${AWS_ACCOUNT}-${CLUSTER_NAME}-vault-s3-backend\"\n region = \"${AWS_DEFAULT_REGION}\"\n}\n/* If use etcd backend\nbackend \"etcd\" {\n address = \"htt... | hcl | chosen |
[
{
"from": "system",
"value": "Add name output to slo-native\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a cop... | hcl | chosen |
[
{
"from": "system",
"value": "Set a default region for tests\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a co... | hcl | chosen |
[
{
"from": "system",
"value": "Add sensitive variable configs test coverage\n"
},
{
"from": "human",
"value": "\nvariable \"foo\" {\n}\n\nvariable \"bar\" {\n default = \"hello\"\n}\n\nvariable \"baz\" {\n type = list\n}\n\nvariable \"bar-baz\" {\n default = []\n type = list(string)\n}\n\n... | hcl | chosen |
[
{
"from": "system",
"value": "Return full konlet configuration from simple example\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n... | hcl | chosen |
[
{
"from": "system",
"value": "Make AWS postgres publicly accessible\n\n[#158168890](https://www.pivotaltracker.com/story/show/158168890)\n\nSigned-off-by: Michael Xu <9a9f0f9e4cafa7274ac4427113dff9772742c003@pivotal.io>\n"
},
{
"from": "human",
"value": "variable \"rds_postgres_username\" {}\nva... | hcl | chosen |
[
{
"from": "system",
"value": "Make subnetwork a required variable\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain... | hcl | chosen |
[
{
"from": "system",
"value": "Add additional registry for Skaffold profiles tutorial\n\nChange-Id: I4ec01c8399bd94aae37b30bf22708658be0e93d4\n"
},
{
"from": "human",
"value": "/**\n * Copyright Google LLC 2021\n * Google Confidential, Pre-GA Offering for Google Cloud Platform\n * (see https://cl... | hcl | chosen |
[
{
"from": "system",
"value": "Fix permissions for Lambdas to log to CloudWatch\n\nThe new Lambda is unable to log anything to CloudWatch because it\ncan't create new log streams. I'm still not sure how the existing\nLambdas were able to create logs without this permission. Whatever\nit was, this allows th... | hcl | chosen |
[
{
"from": "system",
"value": "Use aws_region from env AWS_DEFAULT_REGION for tests\n"
},
{
"from": "human",
"value": "provider \"aws\" {\n region = \"eu-central-1\"\n}\n\nvariable \"name_prefix\" {\n default = \"tf-consul-module-test-\"\n}\n\nmodule \"vpc\" {\n source = \"github.com/gbergere/... | hcl | chosen |
[
{
"from": "system",
"value": "Reduce the length of the storage account name for tfstate\n\nstorage accounts are my white whale\n"
},
{
"from": "human",
"value": "#\n# This terraform plan defines the resources necessary to host the Terraform\n# remote state in Azure Blob Storage as described here... | hcl | chosen |
[
{
"from": "system",
"value": "Add SQS DLQ QUEUE_NAME env var to Lambda function\n"
},
{
"from": "human",
"value": "###################################################################################################\n\nresource \"aws_lambda_function\" \"s3_sftp_bridge_lambda\" {\n filename ... | hcl | chosen |
[
{
"from": "system",
"value": "Update Vault policies to allow storing new data\n"
},
{
"from": "human",
"value": "#\npath \"auth/token/lookup-self\" {\n policy = \"read\"\n}\n\n# Handle token provisioning\npath \"auth/token/create\" {\n policy = \"write\"\n}\n\npath \"auth/token/revoke/\" {... | hcl | chosen |
[
{
"from": "human",
"value": "Add terraform script to create secondary OpenStack project\n\nThis will be used by the multi-cpi e2e test\n\n[#134693605](https://www.pivotaltracker.com/story/show/134693605)\n\nSigned-off-by: Tom Kiemes <2e6bc7bf64c2cabd57fd2be0c1baf57f97b6fecc@sap.com>\n"
},
{
"from": ... | hcl | chosen |
[
{
"from": "system",
"value": "Add note about AWS provider\n"
},
{
"from": "human",
"value": "# This code will create zones at GCP\n#\n# * gcp.$organization_domain\n#\n# The zone gcp will be delegated to Google DNS.\n\nterraform {\n # The configuration for this backend will be filled in by Terra... | hcl | chosen |
[
{
"from": "system",
"value": "Rename remaining output as well\n"
},
{
"from": "human",
"value": "output \"application_zone_id\" {\n value = \"${aws_route53_zone.master_zone.zone_id}\"\n}\n\noutput \"route53_delegation_set\" {\n value = \"${var.route53_delegation_set}\"\n}\n\noutput \"nameserve... | hcl | chosen |
[
{
"from": "system",
"value": "Use one dynamodb table to reduce cost.\n"
},
{
"from": "human",
"value": "variable \"db_data_conf\" {}\nvariable \"db_data_feeds\" {}\nvariable \"db_data_articles\" {}\n\nprovider \"aws\" {\n region = \"ap-southeast-2\"\n}\n\nprovider \"aws\" {\n alias = \"us\... | hcl | chosen |
[
{
"from": "system",
"value": "Use latest GitLab module version"
},
{
"from": "human",
"value": "/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a co... | hcl | chosen |
[
{
"from": "system",
"value": "Add tfstate_encrypted bucket into modules/gcp-secret-mgmt\n"
},
{
"from": "human",
"value": "terraform {\n backend \"gcs\" {}\n}\n\nvariable \"project_id\" {}\nvariable \"serviceaccount_key\" {}\nvariable \"keyring_name\" {}\n\nvariable \"encryption_keys\" {\n typ... | hcl | chosen |
[
{
"from": "system",
"value": "Use latest base networking module in tests.\n"
},
{
"from": "human",
"value": "module \"base_network\" {\n source = \"infrablocks/base-networking/aws\"\n version = \"3.0.0\"\n\n vpc_cidr = var.vpc_cidr\n region = var.region\n availability... | hcl | chosen |
[
{
"from": "system",
"value": "Add answers to the .tf file, don't work yet\n"
},
{
"from": "human",
"value": "provider \"nsone\" {\n apikey = \"fF4uiAIL9wntC7Bdar0a\"\n}\n\nresource \"nsone_zone\" \"foo_com\" {\n zone = \"foo.com\"\n ttl = 60\n}\n\nresource \"nsone_record\" \"www_foo_com... | hcl | chosen |
[
{
"from": "system",
"value": "Add provider block for cross region backups replication\n"
},
{
"from": "human",
"value": "provider \"aws\" {\n region = \"eu-west-1\"\n version = \"1.9.0\"\n}\n\nresource \"aws_iam_account_alias\" \"alias\" {\n account_alias = \"digitalmarketplace-backups\"\n}\... | hcl | chosen |
[
{
"from": "system",
"value": "Correct use of deprecated argument to TF/OpenStack module\n\nhttps://www.terraform.io/docs/providers/openstack/r/networking_router_v2.html#external_gateway\n"
},
{
"from": "human",
"value": "resource \"openstack_networking_router_v2\" \"k8s\" {\n name =... | hcl | chosen |
[
{
"from": "system",
"value": "Remove Default Backend Config from AWS\n"
},
{
"from": "human",
"value": "provider \"aws\" { }\nprovider \"gzip\" {compressionlevel = \"BestCompression\"}\n\n# configured via:\n# $ export AWS_ACCESS_KEY_ID=\"anaccesskey\"\n# $ export AWS_SECRET_ACCESS_KEY=\"asecretk... | hcl | chosen |
[
{
"from": "human",
"value": "Add terraform config for service user and IAM policy\n"
},
{
"from": "gpt",
"value": "# This terraform configuration describes the minimum AWS requirements\n# for RDSLogs\nresource aws_iam_user \"honeycomb-rdslogs-svc-user\" {\n name = \"honeycomb-rdslogs-svc-user\"... | hcl | chosen |
[
{
"from": "system",
"value": "GPII-3992: Add comment explaining necessity for separate module\n"
},
{
"from": "human",
"value": "terraform {\n backend \"gcs\" {}\n}\n\nvariable \"secrets_dir\" {}\nvariable \"charts_dir\" {}\n\nmodule \"istio-gke-helper\" {\n source = \"/exekube-modul... | hcl | chosen |
[
{
"from": "system",
"value": "Update base networking in tests.\n"
},
{
"from": "human",
"value": "module \"base_network\" {\n source = \"infrablocks/base-networking/aws\"\n version = \"2.0.0\"\n\n vpc_cidr = var.vpc_cidr\n region = var.region\n availability_zones = var.availability_zones\n... | hcl | chosen |
[
{
"from": "system",
"value": "Make service account name parameterizable\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may ... | hcl | chosen |
[
{
"from": "human",
"value": "Add NAT config to real-time-enforcer example\n"
},
{
"from": "gpt",
"value": "resource \"random_pet\" \"main\" {\n length = \"1\"\n prefix = \"forseti-simple-example\"\n separator = \"-\"\n}\n\nresource \"google_compute_router\" \"main\" {\n name = \"${r... | hcl | chosen |
[
{
"from": "system",
"value": "Add Packet Nameserver to Kubeconfig\n"
},
{
"from": "human",
"value": "#Configure Resolve.conf\nresource \"null_resource\" \"resolv_conf\" {\n\n provisioner \"local-exec\" {\n command = <<EOF\necho -e \"nameserver \"${ module.master.nameserver }\"\\n$(cat /etc/r... | hcl | chosen |
[
{
"from": "system",
"value": "Join worker data using ','\n"
},
{
"from": "human",
"value": "resource \"aws_instance\" \"worker\" {\n count = \"${ var.worker_node_count }\"\n\n ami = \"${ var.ami_id }\"\n iam_instance_profile = \"${ var.instance_profile_name }\"\n instance_type = \"${ var.ins... | hcl | chosen |
[
{
"from": "system",
"value": "Update default region for test fixture\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obt... | hcl | chosen |
[
{
"from": "system",
"value": "Add aws module to skel\n"
},
{
"from": "human",
"value": "module \"worker\" {\n source = \"github.com/nubisproject/nubis-terraform//worker?ref=v2.3.0\"\n region = \"${var.region}\"\n environment = \"${var.environment}\"\n account ... | hcl | chosen |
[
{
"from": "system",
"value": "Remove default eu-west-1 from bootstrap variable declaration\n"
},
{
"from": "human",
"value": "variable \"aws_account_id\" {\n type = \"string\"\n}\n\nvariable \"region\" {\n type = \"string\"\n default = \"eu-west-1\"\n}\n\nvariable \"environment\" {\n type... | hcl | chosen |
[
{
"from": "system",
"value": "Update to a more obvious ssh key\n"
},
{
"from": "human",
"value": "variable \"subscription_id\" {}\nvariable \"client_id\" {}\nvariable \"client_secret\" {}\nvariable \"tenant_id\" {}\nvariable \"prefix\" {}\nvariable \"dockerregistrylocation\" {\n type = \"s... | hcl | chosen |
[
{
"from": "system",
"value": "Enhance the HCL example to be a bit more rich.\n\nShow how to have:\n\n- Two steps in a test case\n- Two test cases\n\nAll in the same test suite.\n"
},
{
"from": "human",
"value": "name = \"MyTestSuite\"\n\ntestcase {\n name = \"ssh foo status\"\n\n step {\n t... | hcl | chosen |
[
{
"from": "system",
"value": "Add a Terraform output for the VPC.\n"
},
{
"from": "human",
"value": "output \"domain\" {\n value = \"${var.domain}\"\n}\n\noutput \"region\" {\n value = \"${var.region}\"\n}\n"
},
{
"from": "gpt",
"value": "output \"domain\" {\n value = \"${var.doma... | hcl | chosen |
[
{
"from": "system",
"value": "Change name back to check-in\n\nI'd have to replace my existing state machine and lose\nall the saved check-ins, so I'm just gonna go the lazy\nroute here.\n"
},
{
"from": "human",
"value": "resource \"aws_sfn_state_machine\" \"check_in\" {\n name = \"sw-check-... | hcl | chosen |
[
{
"from": "system",
"value": "Fix module crash on empty api list\n\nIf the activate_apis variable was set to an empty list, the\nproject_services module would crash on trying to get the 0 index of the\nempty list. Fix is to instead of only returning the project id from the\ninput if the enable_apis is false... | hcl | chosen |
[
{
"from": "system",
"value": "Increase the read capacity on the recorder VHS\n"
},
{
"from": "human",
"value": "module \"vhs_recorder\" {\n source = \"../../../catalogue_pipeline_data/terraform/vhs\"\n name = \"${replace(var.namespace, \"_\", \"-\")}-Recorder\"\n\n table_stream_enabled = fa... | hcl | chosen |
[
{
"from": "system",
"value": "Disable API termination for delivered instances\n\nSigned-off-by: Tom Duffield <96835dd8bfa718bd6447ccc87af89ae1675daeca@chef.io>\n"
},
{
"from": "human",
"value": "module \"chef_server_omnibus_standalone_inplace_upgrade_server\" {\n source = \"git@github.com:chef/... | hcl | chosen |
[
{
"from": "system",
"value": "Update Kubeconfig Module to Decodebase64 and use GKE Certs"
},
{
"from": "human",
"value": "module \"vpc\" {\n source = \"./modules/vpc\"\n name = \"${ var.name }\"\n cidr = \"${ var.cidr }\"\n region = \"${ var.region }\"\n}\n\nmodule \"cluster\" {\n source = ... | hcl | chosen |
[
{
"from": "human",
"value": "Add sample gatekeeper vault policy.\n"
},
{
"from": "gpt",
"value": "/*\n\tAdd the ability to create orphan tokens with any policy.\n*/\npath \"auth/token/create\" {\n\tcapabilities = [\"create\", \"read\", \"sudo\", \"update\"]\n}\n\npath \"auth/token/create/*\" {\n... | hcl | chosen |
[
{
"from": "system",
"value": "Add implicit dependency for region output.\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may... | hcl | chosen |
[
{
"from": "human",
"value": "Create bucket for job logs\n\nThis creates an S3 bucket to store job logs in, along with an IAM user\nand a bucket policy that only allows that user to put and get objects\nfrom the bucket.\n\nTo configure the job server to use the bucket, we will need to create\na key and secre... | hcl | chosen |
[
{
"from": "system",
"value": "Split Cloud_init Data out using ;\n"
},
{
"from": "human",
"value": "resource \"aws_network_interface\" \"master\" {\n count = \"${ var.master_node_count }\"\n subnet_id = \"${ var.subnet_private_id }\"\n private_ips = [ \"${ var.subnet_prefix }.${ count.index + ... | hcl | chosen |
[
{
"from": "system",
"value": "Fix name of server groups in examples\n"
},
{
"from": "human",
"value": "# Specify the provider and access details\nprovider \"brightbox\" {\n}\n\nresource \"brightbox_cloudip\" \"default\" {\n target = \"${brightbox_server.web.id}\"\n}\n\n# Our default security gr... | hcl | chosen |
[
{
"from": "system",
"value": "Summary: Add output for Windows node IP address (internal)\n\nChangesets:\n- Extract out the Windows node IP\n"
},
{
"from": "human",
"value": "output \"public_ip_primary\" {\n value = \"${azurerm_public_ip.pubip.ip_address}\"\n}\n\noutput \"public_fqdn_primary\" {... | hcl | chosen |
[
{
"from": "system",
"value": "Fix the path in the sierra_adapter stack\n"
},
{
"from": "human",
"value": "module \"vhs_sierra_items\" {\n source = \"../../../catalogue_pipeline/terraform/vhs\"\n name = \"sourcedata-sierra-items\"\n}\n"
},
{
"from": "gpt",
"value": "module \"vhs_s... | hcl | chosen |
[
{
"from": "system",
"value": "Remove echo -e for debian based docker images\n"
},
{
"from": "human",
"value": "#Configure Resolve.conf\nresource \"null_resource\" \"resolv_conf\" {\n\n provisioner \"local-exec\" {\n command = <<EOF\necho -e \"nameserver \"${ module.master.nameserver }\"\\n$(... | hcl | chosen |
[
{
"from": "system",
"value": "Set retention_in_days cloudwatch variable default to valid value\n"
},
{
"from": "human",
"value": "variable \"trail_name\" {\n description = \"The name of the CloudTrail trail we are setting up CloudWatch for.\"\n}\n\nvariable \"retention_in_days\" {\n default ... | hcl | chosen |
[
{
"from": "system",
"value": "Apply WAF rules to app and system load balancers\n\nWe apply an AWS WAF [1] request rate rule to the system and app domain load\nbalancers for DDoS protection. We set the limit to allow 600,000 requests from\nthe same IP in a 5 minute period, based on the maximum number of requ... | hcl | chosen |
[
{
"from": "system",
"value": "Set this value as it's automatically set by Cloud Run\n\nOtherwise a 1000 -> null diff comes back, confusing the user\n"
},
{
"from": "human",
"value": "###################################################################################\n\n# Creates a Cloud Run Serv... | hcl | chosen |
[
{
"from": "system",
"value": "Add Nameserver IP to Kubeconfig\n"
},
{
"from": "human",
"value": "#Configure Resolve.conf\nresource \"null_resource\" \"resolv_conf\" {\n\n provisioner \"local-exec\" {\n command = <<EOF\necho \"nameserver \"${ module.master.nameserver }\"\\n$(cat /etc/resolv.c... | hcl | chosen |
[
{
"from": "system",
"value": "Allow user to specify dns managed zone\n\nSigned-off-by: Oleksandr Slynko <4e0b08036a6e8359453f77324c7b401fdae249da@pivotal.io>\n"
},
{
"from": "human",
"value": "variable \"kubernetes_master_host\" {\n type = \"string\"\n}\n\nresource \"google_dns_managed_zone\" \... | hcl | chosen |
[
{
"from": "system",
"value": "Add elastic IPs to Private Sentry nodes\n"
},
{
"from": "human",
"value": "data \"aws_ami\" \"ubuntu\" {\n most_recent = true\n owners = [\"099720109477\"]\n\n filter {\n name = \"name\"\n values = [\"ubuntu-minimal/images/hvm-ssd/ubunt... | hcl | chosen |
[
{
"from": "human",
"value": "Add Terraform config for SQS/SNS ingest pieces\n"
},
{
"from": "gpt",
"value": "/*\n Once records have been retrieved from DynamoDB and transformed into\n a JSON form suitable for Elasticsearch ingestion, they're sent to\n an SNS topic, which in turn pushes them t... | hcl | chosen |
[
{
"from": "system",
"value": "Make the cluster instances publicly accessible\n"
},
{
"from": "human",
"value": "resource \"aws_rds_cluster_instance\" \"cluster_instances\" {\n count = 2\n\n identifier = \"${var.cluster_identifier}-${count.index}\"\n cluster_identifier = \"${aws_rd... | hcl | chosen |
[
{
"from": "system",
"value": "Increase default RAM available on DigitalOcean brain to 1GB.\n\n[#96611016]\n\nSigned-off-by: David Wadden <ff4ebafbe4a7d77cde45f9afefafd7a5dfa94f36@pivotal.io>\n"
},
{
"from": "human",
"value": "variable \"do_token\" {\n description = \"Digital Ocean API token.\... | hcl | chosen |
[
{
"from": "system",
"value": "Update mirror to openSUSE 15.3\n\nSigned-off-by: Silvio Moioli <7c988a0a7b85739051fc55a56cfbed2f6b1122a5@suse.com>\n"
},
{
"from": "human",
"value": "\nmodule \"mirror\" {\n source = \"../host\"\n\n base_configuration = var.base_configuration\n name ... | hcl | chosen |
[
{
"from": "system",
"value": "Use variable spot price module\n"
},
{
"from": "human",
"value": "module \"p2_compute\" {\n source = \"git::https://github.com/wellcometrust/terraform-modules.git//dlami_asg?ref=v9.5.0\"\n name = \"jupyter-p2\"\n\n key_name = \"${var.key_name}\"\n bucket_na... | hcl | chosen |
[
{
"from": "system",
"value": "Add a lifecycle rule for sending content in the Goobi adapters bucket to IA\n"
},
{
"from": "human",
"value": "resource \"aws_s3_bucket\" \"goobi_adapter\" {\n bucket = \"wellcomecollection-platform-adapters-goobi\"\n\n lifecycle {\n prevent_destroy = true\n }... | hcl | chosen |
[
{
"from": "system",
"value": "Add topic for build status\n"
},
{
"from": "human",
"value": "variable \"s3_bucket\" {}\n\n# topic that the lambda listens to\nresource \"aws_sns_topic\" \"artifact_out_of_date\" {\n name = \"artifact_out_of_date\"\n}\n\n# lambda\nmodule \"scheduler_lambda\" {\n s... | hcl | chosen |
[
{
"from": "human",
"value": "Add shared disk repo for artifactory proxy cache\n"
},
{
"from": "gpt",
"value": "#\n# This terraform plan defines the resources necessary to host repo.jenkins-ci.org proxy cache files\n#\n# See: https://issues.jenkins-ci.org/browse/INFRA-1176\n\nresource \"azurerm_r... | hcl | chosen |
[
{
"from": "system",
"value": "Fix Kubeconfig Vars for GKE"
},
{
"from": "human",
"value": "module \"vpc\" {\n source = \"./modules/vpc\"\n name = \"${ var.name }\"\n cidr = \"${ var.cidr }\"\n region = \"${ var.region }\"\n}\n\nmodule \"cluster\" {\n source = \"./modules/cluster\"\n name =... | hcl | chosen |
[
{
"from": "system",
"value": "Allow for host_path to be optional by using a lookup\n\nlookup with a default of null since the spec says host_path is optional."
},
{
"from": "human",
"value": "data \"template_file\" \"service\" {\n template = coalesce(var.service_task_container_definitions, file... | hcl | chosen |
[
{
"from": "system",
"value": "provider/vSphere: Set vSphere provider min ver req\n\nThis patch sets the minimum required version for the vSphere provider\nfor Terraform to 1.6. This is the version of the provider in which the\nTerraform resource, ResourcePool, was introduced.\n"
},
{
"from": "human"... | hcl | chosen |
[
{
"from": "system",
"value": "Revert \"IAM Role not roles remove list\"\n\nThis reverts commit 8c9c4c7373109750337d4c7669c139450a6bb992.\n"
},
{
"from": "human",
"value": "// Create IAM Role\nresource \"aws_iam_role\" \"iam_role\" {\n name = \"${var.environment_name}-${var.unique_id}elk-role\"\... | hcl | chosen |
[
{
"from": "system",
"value": "Add one more zone to gke_cluster to have room for rolling updates\n"
},
{
"from": "human",
"value": "terraform {\n backend \"gcs\" {}\n}\n\nvariable \"project_id\" {}\nvariable \"serviceaccount_key\" {}\n\n# Terragrunt variables\nvariable \"node_type\" {}\n\nmodule... | hcl | chosen |
[
{
"from": "system",
"value": "Revert \"Change alarm on missing logs from 5 x 60s to 1 x 300s to keep with rest of alert periods\"\n\nThis reverts commit 4eabd764\n\nAlerts 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 previou... | hcl | chosen |
[
{
"from": "system",
"value": "Add app service to terraform\n"
},
{
"from": "human",
"value": "terraform {\n backend \"azurerm\" {\n storage_account_name = \"__terraformstorageaccount__\"\n container_name = \"__terraformcontainer__\"\n key = \"terraform.tfstate\"\... | hcl | chosen |
[
{
"from": "system",
"value": "Set min pool size to 1\n"
},
{
"from": "human",
"value": "/*\nCopyright 2017 Michael Goodness\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License... | hcl | chosen |
[
{
"from": "system",
"value": "Remove custom error responses (not SPA)\n"
},
{
"from": "human",
"value": "data \"aws_acm_certificate\" \"website_certificate\" {\n domain = \"${var.domain}\"\n statuses = [\"ISSUED\"]\n}\n\nresource \"aws_cloudfront_distribution\" \"s3_distribution\" {\n ori... | hcl | chosen |
[
{
"from": "system",
"value": "Use specific location for docker registry\n\n\tAs azure don't provide container registry\n\tin east us 2, we must use east us for this service\n"
},
{
"from": "human",
"value": "resource \"azurerm_resource_group\" \"dockerregistry\" {\n name = \"${var.prefix}do... | hcl | chosen |
[
{
"from": "system",
"value": "Set billing ID for the IoT project\n"
},
{
"from": "human",
"value": "locals {\n env = \"prod\"\n}\n\nprovider \"google\" {}\n\ndata \"google_organization\" \"ferrari_how\" {\n domain = var.google_organization_domain\n}\n\nresource \"google_project\" \"ferrarimarc... | hcl | chosen |
[
{
"from": "system",
"value": "Upgrade random provider to 3.4.3\n"
},
{
"from": "human",
"value": "terraform {\n required_providers {\n aws = {\n source = \"hashicorp/aws\"\n version = \"~>4.36.1\"\n }\n random = {\n source = \"hashicorp/random\"\n version = \"~>3.... | hcl | chosen |
[
{
"from": "system",
"value": "Rename output to service_account_private_key in simulated CI\n\nAddress review comment\nhttps://github.com/terraform-google-modules/terraform-google-startup-scripts/pull/14#discussion_r255206381\n\nNote, even though the output variable name is changed, the intent is to\nmodel t... | hcl | chosen |
[
{
"from": "system",
"value": "Adjust Terraform to Pull From Docker Hub\n"
},
{
"from": "human",
"value": "provider \"docker\" {\n host = \"tcp://127.0.0.1:2375\"\n}\n\nresource \"docker_container\" \"nitro-client\" {\n image = \"nitro-client\"\n name = \"nitro-client\"\n networks = [\"nitro_... | hcl | chosen |
[
{
"from": "system",
"value": "[tf] Remove sort key from DynamoDB table.\n"
},
{
"from": "human",
"value": "resource \"aws_dynamodb_table\" \"threat_intel_ioc\" {\n name = \"${var.prefix}_streamalert_threat_intel_downloader\"\n read_capacity = \"${var.table_rcu}\"\n write_capacity =... | hcl | chosen |
[
{
"from": "system",
"value": "Fix bug in gsuite_group module that requires organizationViewer role\n\norganizationViewer role should not be necessary if domain is specified.\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.... | hcl | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.