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 |
|---|---|---|---|---|---|---|---|---|---|
3e81cae662e0d43e575ed4ddd49768447cbbc297 | Haxe/Externs/Common/unreal/FDataTableRowHandle_Extra.hx | Haxe/Externs/Common/unreal/FDataTableRowHandle_Extra.hx | package unreal;
extern class FDataTableRowHandle_Extra
{
@:thisConst
public function GetRow<T>(ContextString : Const<PRef<FString>>) : PPtr<T>;
}
| Update to latest perforce change | [CL-17845] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
782a84281217f67d571fdfd0a2aaaac4db3b56fa | nme/preloader/Basic.hx | nme/preloader/Basic.hx | import nme.display.Sprite;
import nme.events.Event;
class NMEPreloader extends Sprite
{
private var outline:Sprite;
private var progress:Sprite;
var preWidth:Float;
var preHeight:Float;
var backgroundColor:Int;
var onLoaded:Void->Void;
public function new(inWidth:Float, inHeight:Float, inCol:Int, i... | Work on flash resources and preloader | Work on flash resources and preloader
| Haxe | mit | thomasuster/NME,haxenme/nme,nmehost/nme,madrazo/nme,haxenme/nme,madrazo/nme,haxenme/nme,madrazo/nme,nmehost/nme,madrazo/nme,haxenme/nme,madrazo/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,nmehost/nme,thomasuster/NME,thomasuster/NME,haxenme/nme,thomasuster/NME | |
5829dee462a5831ee6d94f3a05f8cc1419939e2c | Haxe/Externs/Common/unreal/FLogScopedCategoryAndVerbosityOverride.hx | Haxe/Externs/Common/unreal/FLogScopedCategoryAndVerbosityOverride.hx | package unreal;
@:glueCppIncludes("Logging/LogScopedCategoryAndVerbosityOverride.h")
@:uextern extern class FLogScopedCategoryAndVerbosityOverride
{
function new(Category:FName, Verbosity:ELogVerbosity);
}
| Update to latest perforce change | [CL-25217] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
3e27d2e8daa5d488293d218393801bc7715e7289 | std/cpp/NativeArray.hx | std/cpp/NativeArray.hx | package cpp;
class NativeArray {
public static inline function blit<T>( ioDestArray:Array<T>,
inDestElement:Int, inSourceArray:Array<T>,
inSourceElement:Int, inElementCount:Int ): Void {
untyped ioDestArray.blit(inDestElement, inSourceArray, inSourceElement, inElementCount);
};
public static inline function... | Create class to make native array access easier | [cpp] Create class to make native array access easier
| Haxe | mit | pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe | |
8a85c4909e60a9f03364e496f8b5d245f17b7b4b | Haxe/Externs/Common/unreal/FAudioDevice_Extra.hx | Haxe/Externs/Common/unreal/FAudioDevice_Extra.hx | package unreal;
extern class FAudioDevice_Extra {
/**
* Sets a sound class override in the given sound mix.
*/
function PushSoundMixModifier(SoundMix:USoundMix, bIsPassive:Bool, bIsRetrigger:Bool) : Void;
/**
* Sets a sound class override in the given sound mix.
*/
function PopSoundMixModifier(InSoundMix:USou... | Update to latest perforce change | [CL-14434] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
1f382ea5f60cff703354e90e86ff5ef431c175c0 | Haxe/Externs/Common/unreal/UCapsuleComponent_Extra.hx | Haxe/Externs/Common/unreal/UCapsuleComponent_Extra.hx | package unreal;
extern class UCapsuleComponent_Extra {
/**
Returns the capsule radius and half-height scaled by the component scale. Half-height includes the hemisphere end cap.
@param OutRadius Radius of the capsule, scaled by the component scale.
@param OutHalfHeight Half-height of the capsule, scaled b... | Update to latest perforce change | [CL-22158] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
0124ab1b3a9ff789c64f78928c56d33bf58d2293 | test/thx/TestIterators.hx | test/thx/TestIterators.hx | /**
* @author Franco Ponticelli
*/
package thx;
import utest.Assert;
using thx.Iterators;
using thx.Functions;
class TestIterators {
public function new() {}
public function testEquals() {
var a = [1,2,3],
b = [1,2],
c = [1,2,4];
Assert.isTrue(a.iterator().equals(a.iterator()));
A... | /**
* @author Franco Ponticelli
*/
package thx;
import utest.Assert;
using thx.Iterators;
using thx.Functions;
class TestIterators {
public function new() {}
public function testEquals() {
var a = [1,2,3],
b = [1,2],
c = [1,2,4];
Assert.isTrue(a.iterator().equals(a.iterator()));
A... | Add a regression test for reduce. | Add a regression test for reduce.
| Haxe | mit | 0b1kn00b/thx.core,andywhite37/thx.core,mlms13/thx.core,fponticelli/thx.core |
e319ffd260142da43443f3a32f906a76dcf0c9ac | tests/unit/src/flixel/system/frontEnds/CameraFrontEndTest.hx | tests/unit/src/flixel/system/frontEnds/CameraFrontEndTest.hx | package flixel.system.frontEnds;
import flixel.FlxCamera;
import massive.munit.Assert;
class CameraFrontEndTest
{
@Test
public function testCameraAdded()
{
var success = false;
var newCamara = new FlxCamera();
FlxG.cameras.cameraAdded.add(function(camera)
{
success = camera == newCamara;
});
FlxG.ca... | Add some tests for CameraFrontEnd | Add some tests for CameraFrontEnd
| Haxe | mit | HaxeFlixel/flixel | |
30aa1914e413b42d4ec8666ecda639b9ac01b4c1 | js/npm/Bcrypt.hx | js/npm/Bcrypt.hx | package js.npm;
import js.support.Callback;
extern class Bcrypt
implements npm.Package.Require<"bcrypt","^0.8.5"> {
public static function genSaltSync(rounds : Int) : String;
public static function genSalt(rounds : Int, cb : Callback<String>) : Void;
public static function hashSync(data : String, salt : String)... | Add bcrypt node lib extern | Add bcrypt node lib extern
| Haxe | mit | clemos/haxe-js-kit,JbIPS/haxe-js-kit,MatthijsKamstra/haxe-js-kit | |
89d3f850286be9c2b1813f38d8319f20acaa1d7b | lime/graphics/opengl/ExtensionAnisotropicFiltering.hx | lime/graphics/opengl/ExtensionAnisotropicFiltering.hx | package lime.graphics.opengl;
class ExtensionAnisotropicFiltering {
public static var TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
public static var MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
} | Add support for anisotropic filtering through GL extension | Add support for anisotropic filtering through GL extension
| Haxe | mit | MinoGames/lime,player-03/lime,madrazo/lime-1,player-03/lime,openfl/lime,player-03/lime,player-03/lime,openfl/lime,openfl/lime,player-03/lime,madrazo/lime-1,madrazo/lime-1,MinoGames/lime,madrazo/lime-1,MinoGames/lime,madrazo/lime-1,openfl/lime,player-03/lime,openfl/lime,madrazo/lime-1,player-03/lime,madrazo/lime-1,MinoG... | |
56062a00e93ca98934289325dad05a2da97b5995 | src/npm/List.hx | src/npm/List.hx | package npm;
import js.html.Node;
#if(norequire) @:native("List")
#else @:jsRequire("list") #end
extern class List {
// TODO: overload listId... can be an html element
function new(listId : String, ?options : ListOptions, ?values : Array<{}>) : Void;
function add(item : {}) : Void;
}
typedef ListOptions = {
... | Add the start of a list.js extern | Add the start of a list.js extern
| Haxe | mit | abedev/npm,abedev/npm | |
e0b807681fbd69d66f0bbdbd752723b1b3c427c9 | src/tools/haxelib/ClientCommands.hx | src/tools/haxelib/ClientCommands.hx | package tools.haxelib;
class Options {
private var repos:List<String>;
public function new() {
repos = new List<String>();
repos.add("localhost:8200");
repos.add("lib.haxelib.org");
repos.add("www.bazarrware.com");
}
public var repo(getRepo,setRepo) : String;
private function getRepo() {... | Split out the Commands enum and Options class | Split out the Commands enum and Options class
| Haxe | bsd-3-clause | blackdog66/haxed,blackdog66/haxed,blackdog66/haxed,blackdog66/haxed | |
9f9545868ee5ee1708b179f976dd25ad598fb528 | Haxe/Externs/Common/unreal/umg/UCheckBox_Extra.hx | Haxe/Externs/Common/unreal/umg/UCheckBox_Extra.hx | package unreal.umg;
#if proletariat
/**
@param bIsHovered
**/
@:glueCppIncludes("UMG.h", "Public/Components/CheckBox.h")
@:uParamName("bIsHovered")
@:umodule("UMG")
typedef FOnCheckBoxHoveredStateChanged = unreal.DynamicMulticastDelegate<FOnCheckBoxHoveredStateChanged, Bool->Void>;
#end
@:glueCppInclu... | Update to latest perforce change | [CL-52871] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
96a5df090db7dae3de8175ce11803c08f392c2f9 | flixel/input/gamepad/PS4ButtonID.hx | flixel/input/gamepad/PS4ButtonID.hx | package flixel.input.gamepad;
/**
* Button IDs for PlayStation 4 controllers
* (D-pad values are obtained from FlxGamepad.hat)
*/
class PS4ButtonID
{
public static inline var TRIANGLE_BUTTON:Int = 3;
public static inline var CIRCLE_BUTTON:Int = 2;
public static inline var X_BUTTON:Int = 1;
... | Add button IDs for Dualshock 4 | Add button IDs for Dualshock 4
| Haxe | mit | HaxeFlixel/flixel | |
3e56d7df3bb3773c14c290073f719bc8a5a90390 | haxe/compat/cpp/Callable.hx | haxe/compat/cpp/Callable.hx | /*
* Copyright (C)2005-2017 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... | Add compatibility file for cffi prime and older haxe | Add compatibility file for cffi prime and older haxe
| Haxe | mit | haxenme/nme,haxenme/nme,madrazo/nme,madrazo/nme,haxenme/nme,thomasuster/NME,haxenme/nme,madrazo/nme,madrazo/nme,haxenme/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,thomasuster/NME,thomasuster/NME | |
bb35ccfca5a02ea2033ad930b9e0be49e16d0460 | src/haxe/jsonStream/swaggerExporter/SwaggerExporter.hx | src/haxe/jsonStream/swaggerExporter/SwaggerExporter.hx | package jsonStream.swaggerExporter;
import haxe.macro.Context;
import haxe.macro.Type;
using Lambda;
class SwaggerExporter {
#if macro
static function toItemJson(type:Type):Dynamic return {
switch type {
case TAbstract(_.get() => { module: "StdTypes", name: "Int" }, []):
{
type: "int... | Add a SwaggerExport to generate schema for swagger.json | Add a SwaggerExport to generate schema for swagger.json
| Haxe | apache-2.0 | ThoughtWorksInc/json-stream-core | |
f1082aeb9cbad0cb53a5fbd0b204ccab7fb6cec6 | Haxe/Externs/Common/unreal/slatecore/ETextConvertCaseMode.hx | Haxe/Externs/Common/unreal/slatecore/ETextConvertCaseMode.hx | package unreal.slatecore;
#if proletariat
/**
Used to specify case conversion styles on TextBlocks
**/
@:umodule("SlateCore")
@:glueCppIncludes("Public/Styling/SlateTypes.h")
@:uname("ETextConvertCaseMode")
@:class @:uextern @:uenum extern enum ETextConvertCaseMode {
/**
Default
**/
Defaul... | Update to latest perforce change | [CL-49219] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
bd77c0aaf50905250318dd07a76430ad382df4d9 | Haxe/Externs/UE4.22/unreal/umg/FSlateChildSize_Extra.hx | Haxe/Externs/UE4.22/unreal/umg/FSlateChildSize_Extra.hx | package unreal.umg;
import unreal.slatecore.*;
extern class FSlateChildSize_Extra {
@:uname('.ctor') public static function create() : FSlateChildSize;
}
| Update to latest perforce change | [CL-35237] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
076ec5611fd94965001b8d80c23a5ce5ca9498bd | src/middleware/passport/Passport.hx | src/middleware/passport/Passport.hx | package passport;
import express.Middleware;
@:jsRequire("passport")
extern class Passport {
@:selfCall function new() : Void;
public function use(?name : String, strategy : Dynamic) : Passport;
public function unuse(name : String) : Passport;
// only for use outside of an Express context
// public functio... | Add a really basic passport extern | Add a really basic passport extern
| Haxe | mit | abedev/hxexpress,fponticelli/hxexpress | |
9828b345a058c4f6e2b790d504c7040bc6ece83c | outputs.tf | 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... | Add GitLab IP Address as output | Add GitLab IP Address as output | HCL | apache-2.0 | terraform-google-modules/terraform-google-gke-gitlab,terraform-google-modules/terraform-google-gke-gitlab |
fa5c648adc00d1a42314a6d950d229769f340ab9 | gce.tf | gce.tf | provider "google" {}
module "gce_org_prod_workers" {
source = "github.com/travis-infrastructure/tf_gce_travis_worker"
instance_count = 3
site = "org"
environment = "prod"
image = "${var.travis_worker_image}"
}
module "gce_org_staging_workers" {
source = "github.com/travis-infrastructure/tf_gce_travis_work... | provider "google" {}
module "gce_org_prod_workers" {
source = "github.com/travis-infrastructure/tf_gce_travis_worker"
instance_count = 1
site = "org"
environment = "prod"
image = "${var.travis_worker_image}"
}
module "gce_org_staging_workers" {
source = "github.com/travis-infrastructure/tf_gce_travis_work... | Reduce prod workers to count = 1 | Reduce prod workers to count = 1
| HCL | mit | travis-infrastructure/terraform-stuff,travis-infrastructure/terraform-stuff |
a773a9a5399c1e3505c4f8cb967920b37b180092 | modules/mirror/main.tf | modules/mirror/main.tf |
module "mirror" {
source = "../host"
base_configuration = var.base_configuration
name = "mirror"
use_os_released_updates = var.use_os_released_updates
additional_repos = var.additional_repos
additional_packages = var.additional_packages
swap_file_size = var.sw... |
module "mirror" {
source = "../host"
base_configuration = var.base_configuration
name = "mirror"
use_os_released_updates = var.use_os_released_updates
additional_repos = var.additional_repos
additional_packages = var.additional_packages
swap_file_size = var.sw... | Use more recent base image for mirror | Use more recent base image for mirror
| HCL | bsd-3-clause | moio/sumaform,moio/sumaform,moio/sumaform |
5865869ee47ea2b9bc4c92424a53a43cc9ef325e | eucentral1-demo/mesos.tf | eucentral1-demo/mesos.tf | module "mesos" {
source = "github.com/bobtfish/tf_aws_mesos"
adminlbs = "1"
lbs = "2"
masters = "3"
slaves = "5"
region = "${var.region}"
admin_iprange = "${var.admin_iprange}"
admin_... | module "mesos" {
source = "github.com/bobtfish/tf_aws_mesos"
adminlbs = "1"
lbs = "2"
masters = "3"
slaves = "5"
region = "${var.region}"
admin_iprange = "${var.admin_iprange}"
admin_... | Add the VPC IP range so that other VPC hosts can ssh | Add the VPC IP range so that other VPC hosts can ssh
| HCL | apache-2.0 | bobtfish/terraform-example-mesos-cluster |
6bf4b0b0a64e1bbad157660a7ae2ad4434323126 | terraform/cloudfoundry/nat.tf | terraform/cloudfoundry/nat.tf | resource "aws_eip" "cf" {
count = "${var.zone_count}"
vpc = true
}
resource "aws_nat_gateway" "cf" {
count = "${var.zone_count}"
allocation_id = "${element(aws_eip.cf.*.id, count.index)}"
subnet_id = "${element(split(",", var.infra_subnet_ids), count.index)}"
}
resource "aws_route_table" "internet" {
vpc_... | resource "aws_eip" "cf" {
count = "${var.zone_count}"
vpc = true
}
resource "aws_nat_gateway" "cf" {
count = "${var.zone_count}"
allocation_id = "${element(aws_eip.cf.*.id, count.index)}"
subnet_id = "${element(split(",", var.infra_subnet_ids), count.index)}"
}
resource "aws_route_table" "internet" {
vpc_... | Create association between subnet & routing table | Create association between subnet & routing table
Create association between Router subnets & routing table
| HCL | mit | jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf |
378d78486b55d41d83102dcb0bb85e11e20a8df8 | test/fixtures/simple_zonal/unique_outputs.tf | test/fixtures/simple_zonal/unique_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... | Fix example module output reference | Fix example module output reference
| HCL | apache-2.0 | terraform-google-modules/terraform-google-kubernetes-engine,terraform-google-modules/terraform-google-kubernetes-engine,terraform-google-modules/terraform-google-kubernetes-engine |
425c923728023d90c7a94eb6ba93424e9ec1178a | builds/terraform/scala_library/iam_policy_document.tf | builds/terraform/scala_library/iam_policy_document.tf | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"s3:*",
]
resources = [
"${var.bucket_arn}/uk/ac/wellcome/${var.name}_2.12/*",
]
}
statement {
actions = [
"s3:ListBucket",
]
resources = [
"${var.bucket_arn}",
]
}
}
| data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"s3:*",
]
resources = [
"${var.bucket_arn}/uk/ac/wellcome/${var.name}_2.12/*",
]
}
statement {
actions = [
"s3:ListBucket",
]
resources = [
"${var.bucket_arn}",
]
}
stateme... | Allow read access to Travis can resolve other S3 dependencies | Allow read access to Travis can resolve other S3 dependencies
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
20052bf143d36a88caf55351d6e9be19761e0d97 | builds/terraform/s3_scala_releases.tf | builds/terraform/s3_scala_releases.tf | resource "aws_s3_bucket" "releases" {
bucket = "releases.mvn-repo.wellcomecollection.org"
acl = "private"
lifecycle {
prevent_destroy = true
}
lifecycle_rule {
id = "transition_all_to_standard_ia"
transition {
days = 30
storage_class = "STANDARD_IA"
}
enabled = ... | resource "aws_s3_bucket" "releases" {
bucket = "releases.mvn-repo.wellcomecollection.org"
acl = "private"
lifecycle {
prevent_destroy = true
}
lifecycle_rule {
id = "transition_all_to_standard_ia"
transition {
days = 30
storage_class = "STANDARD_IA"
}
enabled = ... | Make the S3 bucket a static website | Make the S3 bucket a static website
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
17728b18fb7d4c2be6b77c52feebf4ea5ad42c5e | terraform/aptos-node-testnet/outputs.tf | terraform/aptos-node-testnet/outputs.tf | output "forge-s3-bucket" {
value = aws_s3_bucket.aptos-testnet-helm[0].bucket
}
output "oidc_provider" {
value = module.validator.oidc_provider
sensitive = true
}
| output "forge-s3-bucket" {
value = length(aws_s3_bucket.aptos-testnet-helm) > 0 ? aws_s3_bucket.aptos-testnet-helm[0].bucket : null
}
output "oidc_provider" {
value = module.validator.oidc_provider
sensitive = true
}
| Fix minor bug in forge terraform | [testnet] Fix minor bug in forge terraform
This was preventing a non forge testnet from coming online because it assumed there was a index 0
| HCL | apache-2.0 | aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core |
2da684052928d41591a3ab04579754ff037ebea7 | aws/modules/master/ec2.tf | aws/modules/master/ec2.tf | resource "aws_instance" "master" {
count = "${ var.master_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" "master" {
count = "${ var.master_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 = true
subnet_id = "... | Deploy master nodes with a public ip | Deploy master nodes with a public ip
| HCL | apache-2.0 | cncf/cross-cloud |
e1af35cd822de2850631de434f2667384d49388b | examples/rds/variables.tf | examples/rds/variables.tf | variable "identifier" {
default = "mydb-rds"
description = "Identifier for your DB"
}
variable "storage" {
default = "10"
description = "Storage size in GB"
}
variable "engine" {
default = "postgres"
description = "Engine type, example values mysql, postgres"
}
variable "engine_version" {
d... | variable "identifier" {
default = "mydb-rds"
description = "Identifier for your DB"
}
variable "storage" {
default = "10"
description = "Storage size in GB"
}
variable "engine" {
default = "postgres"
description = "Engine type, example values mysql, postgres"
}
variable "engine_version" {
d... | Update RDS engine versions to latest supported | Update RDS engine versions to latest supported | HCL | mpl-2.0 | kjmkznr/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,terraform-providers/terraform-provider-aws,nbaztec/terraform-provider-aws,nbaztec/terraform-provider-aws,terraform-providers/terraform-provider-aws,Ninir/terraform-provider-aws,Ninir/terraform-provider-aws,Ninir/ter... |
ba0d0146f00f99539b85accf7ee50838741514e2 | 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 } >> "${ var.data_dir }/kubeconfig"
EOF
}
}
| #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
EOF
}
}
resource "null_resource" "resolv_conf_kubeconfig" {
provisioner "local-exec" {
command = <<... | Split Nameserver Jobs for Packet | Split Nameserver Jobs for Packet
| HCL | apache-2.0 | cncf/cross-cloud |
931f455abc55f7260feb398eaa382004cc9061de | gcp/modules/istio/main.tf | gcp/modules/istio/main.tf | terraform {
backend "gcs" {}
}
# This resource waits till GCP allocates IP address for Istio ingress gateway
resource "null_resource" "ingress_ip_wait" {
triggers = {
nonce = "${var.nonce}"
}
provisioner "local-exec" {
command = <<EOF
COUNT=1
MAX_RETRIES=60
SLEEP_SEC=5
INGRESS_... | terraform {
backend "gcs" {}
}
variable "project_id" {}
variable "serviceaccount_key" {}
variable "infra_region" {}
variable "nonce" {}
provider "google" {
project = "${var.project_id}"
credentials = "${var.serviceaccount_key}"
}
# This resource waits till GCP allocates IP address for Istio ingress gateway... | Convert Istio public IP to static | GPII-3970: Convert Istio public IP to static
Note on "PREMIUM" network tier: Premium is Google's default, it's the
tier we currently use and apart from implication on performance, it's
the only tier that is available across all regions and the only tier
that can be used with global IPs.
| HCL | bsd-3-clause | mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra |
19e74e65778d8312b4415d1491df10912c793bf3 | .vault/builder-user.hcl | .vault/builder-user.hcl | # Allow tokens to look up their own properties
path "auth/token/lookup-self" {
capabilities = ["read"]
}
# Allow tokens to renew themselves
path "auth/token/renew-self" {
capabilities = ["update"]
}
# Allow tokens to revoke themselves
path "auth/token/revoke-self" {
capabilities = ["update"]
}
# Allow a ... | # Allow tokens to look up their own properties
path "auth/token/lookup-self" {
capabilities = ["read"]
}
# Allow tokens to renew themselves
path "auth/token/renew-self" {
capabilities = ["update"]
}
# Allow tokens to revoke themselves
path "auth/token/revoke-self" {
capabilities = ["update"]
}
# Allow a ... | Allow tokens to create child tokens for Terraform usage | Allow tokens to create child tokens for Terraform usage
| HCL | mit | elifesciences/builder,elifesciences/builder |
ad6248526bd9da8a3c5c8e88f5046216051ba74b | vault/policies/endpoint.hcl | vault/policies/endpoint.hcl | #
path "auth/token/lookup-self" {
policy = "read"
}
path "cubbyhole/*" {
policy = "write"
}
# Handle Endpoint server credentials
path "secret/endpoint/*" {
policy = "read"
}
# User Management API
path "secret/keycloak" {
policy = "read"
}
#############################################
# Ingest tempor... | #
path "auth/token/lookup-self" {
policy = "read"
}
path "cubbyhole/*" {
policy = "write"
}
# Handle Endpoint server credentials
path "secret/endpoint/*" {
policy = "read"
}
# User Management API
path "secret/keycloak" {
policy = "read"
}
#############################################
# Ingest tempor... | Read permission also required for credentials. | Read permission also required for credentials.
| HCL | apache-2.0 | jhuapl-boss/boss-manage,jhuapl-boss/boss-manage |
70ff8a477bc3a92cfe428fea7cab3922b158641f | packet/packet.tf | packet/packet.tf | # Configure the Packet Provider
# https://www.terraform.io/docs/providers/packet/index.html
# PACKET_AUTH_TOKEN must be set
# resource "packet_project" "cncf" {
# name = "${ var.name }"
# # packet_project.cncf: Payment method can't be blank
# payment_method = ""
# }
# resource "packet_ssh_key" "cncf" {
# n... | # Configure the Packet Provider
# https://www.terraform.io/docs/providers/packet/index.html
# PACKET_AUTH_TOKEN must be set
# resource "packet_project" "cncf" {
# name = "${ var.name }"
# # packet_project.cncf: Payment method can't be blank
# payment_method = ""
# }
# resource "packet_ssh_key" "cncf" {
# n... | Add S3 Backend for Packet | Add S3 Backend for Packet | HCL | apache-2.0 | cncf/cross-cloud |
fbb44a41b7ed3bef2fb887287f8a88c289df6334 | lightsail/variables.tf | lightsail/variables.tf | # Default instance size
# Options: nano_1_0, micro_1_0, small_1_0, medium_1_0, large_1_0
# Override: -var 'size=your-size'
variable "size" {
default = "micro_1_0"
}
# Default AWS region
# Options: eu-central-1, eu-west-1, eu-west-2, us-east-1, us-east-2, us-west-2 for Lightsail
# Override: -var 'region=your-region'... | # Default instance size
# Options: nano_1_0, micro_1_0, small_1_0, medium_1_0, large_1_0
# Override: -var 'size=your-size'
variable "size" {
default = "small_1_0"
}
# Default AWS region
# Options: eu-central-1, eu-west-1, eu-west-2, us-east-1, us-east-2, us-west-2 for Lightsail
# Override: -var 'region=your-region'... | CHANGE to larger instances to have some more headroom | CHANGE to larger instances to have some more headroom
| HCL | mit | xeraa/microservice-monitoring,xeraa/microservice-monitoring,xeraa/microservice-monitoring,xeraa/microservice-monitoring |
d8e5142aab500d4fa94224b77a50a61108280293 | 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" | Revert "IAM Role not roles"
This reverts commit ccaf0a17adcfffabefa7531359b93dbaa94ba1fb.
| HCL | apache-2.0 | TerraformDesignPattern/elk |
df286aa90db3ed64e30ada86c8ed643ddf242885 | test/setup/main.tf | test/setup/main.tf | /**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Configure providers for test setup | Configure providers for test setup
Use Google 2.12.0 to avoid IAM issue
| HCL | apache-2.0 | terraform-google-modules/terraform-google-sql-db,terraform-google-modules/terraform-google-sql-db |
51f3420ff757f41a351816b2561738eba29b704d | terraform/datadog/variables.tf | terraform/datadog/variables.tf | variable "job_instances" {
description = "List of pairs <job_name>:<job_count> of expected bosh job instance count"
default = []
}
variable "support_email" {
description = "DeskPro email address"
default = "govpaas-alerting-dev@digital.cabinet-office.gov.uk"
}
variable "enable_pagerduty_notifications"... | variable "job_instances" {
description = "List of pairs <job_name>:<job_count> of expected bosh job instance count"
default = []
}
variable "support_email" {
description = "DeskPro email address"
default = "govpaas-alerting-dev@digital.cabinet-office.gov.uk"
}
variable "enable_pagerduty_notifications"... | Update link to the team manual for datadog alerts | Update link to the team manual for datadog alerts
We are deploying the team manual as a github page as in the PR[1]
We must update the urls to the runbooks set in the datadog alerts.
[1] https://github.com/alphagov/paas-team-manual/pull/195
| 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 |
6b64bdb9cc7a7b276b3d074632eb9626673ae85b | terraform/dns.tf | terraform/dns.tf | resource "digitalocean_domain" "domain" {
name = "jenkins.unguiculus.io"
ip_address = "${digitalocean_droplet.jenkins.ipv4_address}"
}
| resource "digitalocean_domain" "domain" {
name = "unguiculus.io"
ip_address = "${digitalocean_droplet.jenkins.ipv4_address}"
}
resource "digitalocean_record" "record" {
domain = "${digitalocean_domain.domain.name}"
type = "A"
name = "jenkins"
value = "${digitalocean_droplet.jenkins.ipv4_address... | Update domain setup to fix SERVFAIL error | Update domain setup to fix SERVFAIL error
| HCL | apache-2.0 | unguiculus/docker-jenkins-bootstrap |
95b9346546b38d8642efce0e3d182a84f3a9c478 | modules/vars/all/main.tf | modules/vars/all/main.tf | variable "azs" {
default = {
us-east-1 = "us-east-1a,us-east-1b,us-east-1c,us-east-1d,us-east-1e,us-east-1f"
us-west-2 = "us-west-2a,us-west-2b,us-west-2c"
}
}
output "azs" { value = "${var.azs}" }
variable "amzn_amis" {
default = {
us-east-1 = "ami-a4c7edb2"
}
}
output "amzn_am... | output "azs" {
value = {
us-east-1 = "us-east-1a,us-east-1b,us-east-1c,us-east-1d,us-east-1e,us-east-1f"
us-west-2 = "us-west-2a,us-west-2b,us-west-2c"
}
}
output "amzn_amis" {
value = {
us-east-1 = "ami-a4c7edb2"
}
}
output "amzn_ecs_amis" {
value = {
us-east-1 = "... | Remove redundant variables in static module | Remove redundant variables in static module
| HCL | mit | jniedrauer/jniedrauer.com,jniedrauer/jniedrauer.com,jniedrauer/jniedrauer.com |
3c99cf5f95e50699e5de9d78d34eee4bb8efece8 | plans/accountapp.tf | plans/accountapp.tf | #
# This terraform plan defines the resources necessary to host accounts.jenkins.io files
#
resource "azurerm_resource_group" "accountapp" {
name = "${var.prefix}accountapp"
location = "${var.location}"
tags {
env = "${var.prefix}"
}
}
resource "azurerm_storage_account" "accountapp" {
n... | Add shared disk storage: Accountapp | Add shared disk storage: Accountapp
| HCL | mit | olblak/azure,olblak/azure,jenkins-infra/azure,olblak/azure | |
724ce66264fc0f0e82e844a9b4a41ddb20752baa | .hashibot.hcl | .hashibot.hcl | behavior "regexp_issue_labeler" "panic_label" {
regexp = "panic:"
labels = ["crash", "bug"]
}
behavior "regexp_issue_notifier" "panic_notify" {
regexp = "panic:"
slack_channel = env.COMMITTERS_SLACK_CHANNEL
message = "Panic report! https://github.com/${var.repository}/issues/${var.issue_number} has... | behavior "regexp_issue_labeler" "panic_label" {
regexp = "panic:"
labels = ["crash", "bug"]
}
behavior "remove_labels_on_reply" "remove_stale" {
labels = ["waiting-response", "stale"]
only_non_maintainers = true
}
behavior "pull_request_size_labeler" "size" {
label_prefix = "size/"
label_map =... | Remove GitHub HashiBot notifications to Slack | Remove GitHub HashiBot notifications to Slack
These are no longer needed by the maintainers.
| HCL | mpl-2.0 | terraform-providers/terraform-provider-null,terraform-providers/terraform-provider-null,hashicorp/terraform-provider-null,hashicorp/terraform-provider-null |
c511e9a03d08adc689de3a7e7fa1af5d90cceab7 | modules/gsuite_group/outputs.tf | modules/gsuite_group/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... | Add group name output to gsuite_group module | Add group name output to gsuite_group module
| 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 |
50dcb8a2510ec9adffe068df80a202815886efa0 | terraform/root/aws-dm-dev/s3_buckets.tf | terraform/root/aws-dm-dev/s3_buckets.tf | resource "aws_s3_bucket" "dev_uploads_s3_bucket" {
bucket = "digitalmarketplace-dev-uploads"
acl = "private"
policy = <<POLICY
{
"Version": "2012-10-17",
"Statement": [
{
"Principal": {"AWS": "arn:aws:iam::${var.main_account_id}:root"},
"Action": [
"s3:ListBucket",
"s3:GetBu... | resource "aws_s3_bucket" "dev_uploads_s3_bucket" {
bucket = "digitalmarketplace-dev-uploads"
acl = "private"
policy = <<POLICY
{
"Version": "2012-10-17",
"Statement": [
{
"Principal": {"AWS": "arn:aws:iam::${var.aws_main_account_id}:root"},
"Action": [
"s3:ListBucket",
"s3:G... | Remove extra commas from policy JSON | Remove extra commas from policy JSON
| HCL | mit | alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws |
17b8f45983ffec4223b92c085abff6851c93b41f | terraform/modules/jenkins/elb.tf | terraform/modules/jenkins/elb.tf | resource "aws_elb" "jenkins_elb" {
name = "${var.name}-ELB"
subnets = ["${aws_instance.jenkins.subnet_id}"]
instances = ["${aws_instance.jenkins.id}"]
security_groups = ["${aws_security_group.jenkins_elb_security_group.id}"]
listener {
instance_port = 80
instance_protoco... | resource "aws_elb" "jenkins_elb" {
name = "${var.name}-ELB"
subnets = ["${aws_instance.jenkins.subnet_id}"]
instances = ["${aws_instance.jenkins.id}"]
security_groups = ["${aws_security_group.jenkins_elb_security_group.id}"]
access_logs {
bucket = "${aws_s3_bucket.jenkins_logs_... | Enable access logging on Jenkins instance ELB | Enable access logging on Jenkins instance ELB
| HCL | mit | alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws |
7b39a74d6a10f0865fa3c98a9fc551050f7afa28 | sierra_adapter/terraform/s3.tf | sierra_adapter/terraform/s3.tf | resource "aws_s3_bucket" "sierra_data" {
bucket = "wellcomecollection-sierra-adapter-data"
lifecycle_rule {
id = "records_bibs"
prefix = "records_bibs/"
enabled = true
expiration {
days = 7
}
}
lifecycle_rule {
id = "records_items"
prefix = "records_items/"
e... | resource "aws_s3_bucket" "sierra_data" {
bucket = "wellcomecollection-sierra-adapter-data"
# lifecycle_rule {
# id = "records_bibs"
# prefix = "records_bibs/"
# enabled = true
#
# expiration {
# days = 7
# }
# }
#
# lifecycle_rule {
# id = "records_items"
# prefix = "records_... | Disable lifecycle rules on the S3 bucket | Disable lifecycle rules on the S3 bucket
So we don't lose the records we've already fetched!
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
00c431a9d20ad8baac64f124ace740f724f92676 | digital-ocean/container-linux/kubernetes/outputs.tf | digital-ocean/container-linux/kubernetes/outputs.tf | output "kubeconfig-admin" {
value = module.bootstrap.kubeconfig-admin
}
output "controllers_dns" {
value = digitalocean_record.controllers[0].fqdn
}
output "workers_dns" {
# Multiple A and AAAA records with the same FQDN
value = digitalocean_record.workers-record-a[0].fqdn
}
output "controllers_ipv4" {
val... | output "kubeconfig-admin" {
value = module.bootstrap.kubeconfig-admin
}
output "controllers_dns" {
value = digitalocean_record.controllers[0].fqdn
}
output "workers_dns" {
# Multiple A and AAAA records with the same FQDN
value = digitalocean_record.workers-record-a[0].fqdn
}
output "controllers_ipv4" {
val... | Add Kubelet kubeconfig output for DigitalOcean | Add Kubelet kubeconfig output for DigitalOcean
* Allow the raw kubelet kubeconfig to be consumed via
Terraform output
| HCL | mit | poseidon/typhoon |
4dc32c389663678df7a65a0d30bb9994919edd1b | 03-app_ports.tf | 03-app_ports.tf | ##Amazon Infrastructure
provider "aws" {
region = "${var.aws_region}"
}
##Create applications security group
resource "aws_security_group" "app_sg" {
name = "app_sg"
vpc_id = "${var.aws_vpc_id}"
description = "Allow all inbound traffic necessary for Halo apps"
ingress {
from_port = 80... | Create security group for apps | Create security group for apps
| HCL | apache-2.0 | jruels/ansiterradocker | |
f8da7e526776a4670f0ff6f4c1364992797166af | terraform/openstack/keypair/main.tf | terraform/openstack/keypair/main.tf | variable auth_url {}
variable tenant_id {}
variable tenant_name {}
variable region {}
variable keypair_name {}
variable public_key {}
provider "openstack" {
auth_url = "${ var.auth_url }"
tenant_id = "${ var.tenant_id }"
tenant_name = "${ var.tenant_name }"
}
resource "openstack_compute_keypair_v2" "... | variable auth_url {}
variable tenant_id {}
variable tenant_name {}
variable keypair_name {}
variable public_key {}
provider "openstack" {
auth_url = "${ var.auth_url }"
tenant_id = "${ var.tenant_id }"
tenant_name = "${ var.tenant_name }"
}
resource "openstack_compute_keypair_v2" "keypair" {
name ... | Remove region from openstack keypair module | Remove region from openstack keypair module
| HCL | apache-2.0 | ContainerSolutions/microservices-infrastructure,sehqlr/mantl,eirslett/microservices-infrastructure,ilboud/microservices-infrastructure,abn/microservices-infrastructure,Parkayun/microservices-infrastructure,kenjones-cisco/microservices-infrastructure,benschumacher/microservices-infrastructure,CiscoCloud/microservices-in... |
49f93d6c702d5278820e6f1d365e990ce228dcbd | terraform/lambda/lambda_function.tf | terraform/lambda/lambda_function.tf | data "archive_file" "lambda_zip_file" {
type = "zip"
source_file = "${var.filename}"
output_path = "/tmp/${var.name}.zip"
}
resource "aws_lambda_function" "lambda_function" {
description = "${var.description}"
filename = "${data.archive_file.lambda_zip_file.output_path}"
function_name = "${va... | data "archive_file" "lambda_zip_file" {
type = "zip"
source_file = "${var.filename}"
output_path = "/tmp/${var.name}.zip"
}
resource "aws_lambda_function" "lambda_function" {
description = "${var.description}"
filename = "${data.archive_file.lambda_zip_file.output_path}"
function_name = "${va... | Switch to the Python 3.6 runtime for our Lambdas | Switch to the Python 3.6 runtime for our Lambdas
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
2cb6da0a56f8709dd60e92234c99a72aefc8fd4c | examples/lambda/main.tf | examples/lambda/main.tf | # Specify the provider and access details
provider "aws" {
region = "${var.aws_region}"
}
provider "archive" {}
data "archive_file" "zip" {
type = "zip"
source_file = "hello_lambda.py"
output_path = "hello_lambda.zip"
}
data "aws_iam_policy_document" "policy" {
statement {
sid = ""
effect... | # Specify the provider and access details
provider "aws" {
region = "${var.aws_region}"
}
provider "archive" {}
data "archive_file" "zip" {
type = "zip"
source_file = "hello_lambda.py"
output_path = "hello_lambda.zip"
}
data "aws_iam_policy_document" "policy" {
statement {
sid = ""
effect... | Use correct hash to check lambda source zip | Use correct hash to check lambda source zip
| HCL | mpl-2.0 | Ninir/terraform-provider-aws,Ninir/terraform-provider-aws,terraform-providers/terraform-provider-aws,terraform-providers/terraform-provider-aws,kjmkznr/terraform-provider-aws,kjmkznr/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,Ninir/terraform-provider-aws,Ninir/terra... |
1d5cd8c18865d9fabd9421ab556e4fc7c4a1df75 | azure/ssl-ssh-cloud.tf | azure/ssl-ssh-cloud.tf | #Gen Certs and SSH KeyPair
resource "null_resource" "ssh_gen" {
provisioner "local-exec" {
command = <<EOF
${ path.module }/init-cfssl \
${ var.data_dir }/.cfssl \
${ azurerm_resource_group.cncf.location } \
${ var.internal_tld } \
${ var.k8s_service_ip }
EOF
}
provisioner "local-exec" {
when = "destroy... | #Gen Certs and SSH KeyPair
resource "null_resource" "ssl_gen" {
provisioner "local-exec" {
command = <<EOF
mkdir -p ${ var.data_dir }/.cfssl
${ path.module }/init-cfssl \
${ var.data_dir }/.cfssl \
${ azurerm_resource_group.cncf.location } \
${ var.internal_tld } \
${ var.k8s_service_ip }
EOF
}
provisioner ... | Fix Nameing for SSL Cert Creation | Fix Nameing for SSL Cert Creation
| HCL | apache-2.0 | cncf/cross-cloud |
c07b783d287a8b59be69c7230ca253c469adbe52 | catalogue_pipeline/terraform/pipeline/security_groups.tf | catalogue_pipeline/terraform/pipeline/security_groups.tf | resource "aws_security_group" "service_egress_security_group" {
name = "${var.namespace}_service_egress_security_group"
description = "Allow traffic between services"
vpc_id = "${var.vpc_id}"
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}... | resource "aws_security_group" "service_egress_security_group" {
name = "${var.namespace}_service_egress_security_group"
description = "Allow traffic between services"
vpc_id = "${var.vpc_id}"
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}... | Add a CloudWatchLogs VPC endpoint | Add a CloudWatchLogs VPC endpoint
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
6b732e1c81a3b92903577edaceb21f55491ec78f | terraform/modules/logging/alarms/status-code/alarms.tf | terraform/modules/logging/alarms/status-code/alarms.tf | resource "aws_cloudwatch_metric_alarm" "status_code_alarm" {
alarm_name = "${var.environment}-${var.status_code}s"
alarm_description = "Alerts on ${var.status_code} on the ${var.environment} router."
// Metric
namespace = "DM-${var.status_code}s"
metric_name = "${var.environment}-router-nginx-${var.... | resource "aws_cloudwatch_metric_alarm" "status_code_alarm" {
alarm_name = "${var.environment}-${var.status_code}s"
alarm_description = "Alerts on ${var.status_code} on the ${var.environment} router."
// Metric
namespace = "DM-${var.status_code}s"
metric_name = "${var.environment}-router-nginx-${var.... | Update comment with correct second value | Update comment with correct second value
| HCL | mit | alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws |
fb12355215f7f8e1ab3a7e43df22fae635c87ef7 | route53.tf | route53.tf | #--------------------------------------------------------------
# Route53 Hosted Zone
#--------------------------------------------------------------
resource "aws_route53_zone" "hosted_zone" {
name = "prod.internal"
vpc_id = "${aws_vpc.database_setup.id}"
tags {
Name = "production-zone"
}
}
#----------------... | Add internal A records for all db servers | Add internal A records for all db servers
| HCL | mpl-2.0 | CruzanCaramele/MariaDB-MySQL | |
2e21280a8f75c5e8ffb85a4c78df8d7b6bd1e72b | examples/aws-ec2-terraform/variables.tf | examples/aws-ec2-terraform/variables.tf | variable "cluster" {
description = "Kubernetes cluster suffix"
default = "a1"
}
variable "ec2_region" {
description = "EC2 region"
default = "eu-central-1"
}
variable "ami" {
description = "AMI ID"
type = "map"
default = {
"eu-central-1" = "ami-6da2ba01"
}
}
variabl... | variable "cluster" {
description = "Kubernetes cluster suffix"
default = "a2"
}
variable "ec2_region" {
description = "EC2 region"
default = "eu-west-1"
}
variable "ami" {
description = "AMI ID"
type = "map"
default = {
"eu-west-1" = "ami-36289a45"
"eu-central... | Add AMI for `eu-west-1` and update one for `eu-central-1` | Add AMI for `eu-west-1` and update one for `eu-central-1`
| HCL | apache-2.0 | mikedanese/kubernetes-anywhere,errordeveloper/kubernetes-anywhere,weaveworks/weave-kubernetes-anywhere,weaveworks/kubernetes-anywhere,rohitjogvmw/kubernetes-anywhere |
b3d35f9925f5039d53f6d2cd16fd5e4cad869b35 | provisioning/terraform/modules/configuration/kubernetes.tf | provisioning/terraform/modules/configuration/kubernetes.tf | provider "kubernetes" {
alias = "configuration-gke-cluster"
load_config_file = false
host = "https://${google_container_cluster.configuration-gke-cluster.endpoint}"
token = data.google_client_config.google-provider-configuration.access_token
cluster_ca_certificate = base64decode(google_container... | provider "kubernetes" {
alias = "configuration-gke-cluster"
load_config_file = false
host = "https://${google_container_cluster.configuration-gke-cluster.endpoint}"
token = data.google_client_config.google-provider-configuration.access_token
cluster_ca_certificate = base64decode(google_container... | Configure provider for the cloud build cluster role binding | Configure provider for the cloud build cluster role binding
| HCL | mit | ferrarimarco/home-lab,ferrarimarco/home-lab |
9b8d67a87184d22cd277a603b79d84a1de6f0de7 | terraform/accounts/main/jenkins.tf | terraform/accounts/main/jenkins.tf | resource "aws_key_pair" "jenkins" {
key_name = "${var.ssh_key_name}"
public_key = "${var.jenkins_public_key}" # injected by Makefile-common
}
module "jenkins_elb_log_bucket" {
source = "../../modules/jenkins/log_bucket"
name = "jenkins-ci.marketplace.team-logs-bucket"
}
module "jenkins" {
source ... | resource "aws_key_pair" "jenkins" {
key_name = "${var.ssh_key_name}"
public_key = "${var.jenkins_public_key}" # injected by Makefile-common
}
module "jenkins_elb_log_bucket" {
source = "../../modules/jenkins/log_bucket"
name = "jenkins-ci.marketplace.team-logs-bucket"
}
module "jenkins" {
source ... | Add comment clarifying what this variable represents | Add comment clarifying what this variable represents
| HCL | mit | alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws |
0ba925b6266907e612fa6aa2a8734595f2647faf | builds/terraform/platform/iam_policy_document.tf | builds/terraform/platform/iam_policy_document.tf | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions ... | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions ... | Add SNS:Publish permissions to the build | Add SNS:Publish permissions to the build
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
7771811a335c433ef6e0a04c29ab229cbe712afb | plans/updates_proxy.tf | plans/updates_proxy.tf | #
# This terraform plan defines the resources necessary to host azure.updates.jenkins.io
# updates-proxy.jenkins.io only contains htaccess files generated by https://github.com/jenkins-infra/update-center2/pull/224.
# This service acts as a fallback updates.jenkins.io
#
resource "azurerm_resource_group" "updates-proxy... | #
# This terraform plan defines the resources necessary to host azure.updates.jenkins.io
# updates-proxy.jenkins.io only contains htaccess files generated by https://github.com/jenkins-infra/update-center2/pull/224.
# This service acts as a fallback updates.jenkins.io
#
resource "azurerm_resource_group" "updates-proxy... | Remove - from storage account name | Remove - from storage account name
| HCL | mit | olblak/azure,jenkins-infra/azure,olblak/azure,olblak/azure |
9ec01032f8af45c3455328452a82aebcd7d2085c | tests/MyTestSuiteSSH.hcl | tests/MyTestSuiteSSH.hcl | name = "MyTestSuite"
testcase {
name = "ssh foo status"
step {
type = "ssh"
host = "localhost"
command = "echo foo"
assertions = [
"result.code ShouldEqual 0",
"result.timeseconds ShouldBeLessThan 10",
]
}
}
| Add a sample .hcl test case | Add a sample .hcl test case
For comparison, this file is a direct conversion of `MyTestSuiteSSH.yml`
to HCL.
| HCL | bsd-3-clause | runabove/venom,runabove/venom | |
47316165279896d1e8ce543e180c3d0007c297b4 | loris/terraform/stack/cluster_host.tf | loris/terraform/stack/cluster_host.tf | module "cluster_host" {
source = "git::https://github.com/wellcometrust/terraform.git//ecs/modules/ec2/prebuilt/ebs?ref=4a81e34"
cluster_name = "${aws_ecs_cluster.cluster.name}"
vpc_id = "${var.vpc_id}"
asg_name = "${var.namespace}"
subnets = "${var.private_subnets}"
instance_type = "${var.instanc... | module "cluster_host" {
source = "git::https://github.com/wellcometrust/terraform.git//ecs/modules/ec2/prebuilt/ebs?ref=v19.7.0"
cluster_name = "${aws_ecs_cluster.cluster.name}"
vpc_id = "${var.vpc_id}"
asg_name = "${var.namespace}"
subnets = "${var.private_subnets}"
instance_type = "${var.instanc... | Use a pinned version of the tf-modules | Use a pinned version of the tf-modules
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
e2d4af43be42d6d7ebcca6c3116faa2faf5730a8 | azure/fedora-coreos/kubernetes/bootstrap.tf | azure/fedora-coreos/kubernetes/bootstrap.tf | # Kubernetes assets (kubeconfig, manifests)
module "bootstrap" {
source = "git::https://github.com/poseidon/terraform-render-bootstrap.git?ref=1ad53d3b1c1ad75a4ed27f124f772fc5dc025245"
cluster_name = var.cluster_name
api_servers = [format("%s.%s", var.cluster_name, var.dns_zone)]
etcd_servers = formatlist("%s... | # Kubernetes assets (kubeconfig, manifests)
module "bootstrap" {
source = "git::https://github.com/poseidon/terraform-render-bootstrap.git?ref=1ad53d3b1c1ad75a4ed27f124f772fc5dc025245"
cluster_name = var.cluster_name
api_servers = [format("%s.%s", var.cluster_name, var.dns_zone)]
etcd_servers = formatlist("%s... | Fix Fedora CoreOS Azure MTU with Calico | Fix Fedora CoreOS Azure MTU with Calico
* With Calico VXLAN on Fedora CoreOS the 1450 MTU should
be used
| HCL | mit | poseidon/typhoon |
e3f4d1edfa803ae8a2fd4ba713357222e214ad4e | terraform/accounts/backups/access.tf | terraform/accounts/backups/access.tf | resource "aws_iam_role" "backups_role" {
name = "backups"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::${var.aws_main_account_id}:root"
},
"Action": "sts:AssumeRole"
}
]
}
EOF
}
resource ... | Add new backups role in backups account and allow main/group to assume it | Add new backups role in backups account and allow main/group to assume it
| HCL | mit | alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws | |
79b96c511ae4eda823101a549ed4c45b5d6d0454 | 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 ELB access log shipping to S3 for Router | Enable ELB access log shipping to S3 for Router
Send the access logs for all the tenants traffic that goes to the
routers.
We will send them every 5 minutes (minimum allowed)
| HCL | mit | alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/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,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf |
adcb5b73cf77a209bc60abea5c2ac3644230896e | terraform/modules/logging/alarms/admin-manager-password-reset/alarms.tf | terraform/modules/logging/alarms/admin-manager-password-reset/alarms.tf | resource "aws_cloudwatch_metric_alarm" "admin_manager_password_reset" {
alarm_name = "${var.environment}-admin-manager-password-reset"
alarm_description = "Resetting the password for an admin manager role should notify Slack."
// Metric
namespace = "DM-admin-manager-password-reset"
metric_name = "${... | resource "aws_cloudwatch_metric_alarm" "admin_manager_password_reset" {
alarm_name = "${var.environment}-admin-manager-password-reset"
alarm_description = "Resetting the password for an admin manager role should notify Slack."
// Metric
namespace = "DM-admin-manager-password-reset"
metric_name = "${... | Increase period for notifications when someone attempts to reset admin manager password from 60s to 300s | Increase period for notifications when someone attempts to reset admin manager password from 60s to 300s
- see:
- trello: https://trello.com/c/xeZofjDd
- rfc: https://docs.google.com/document/d/1yTXLCdHicPqdu0wAR1-fqOiL3cedIonjjA2_kS-YXAI
- in theory, having a window of 300s instead of 60s should make no differenc... | HCL | mit | alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws |
ab2487ab59c7ba0deec76599360747cd8a98585e | miro_preprocessor/s3.tf | miro_preprocessor/s3.tf | resource "aws_s3_bucket" "wellcomecollection-images" {
bucket = "wellcomecollection-images"
acl = "private"
lifecycle_rule {
id = "library"
prefix = "library/"
transition {
days = 30
storage_class = "STANDARD_IA"
}
enabled = true
}
lifecycle_rule {
id ... | resource "aws_s3_bucket" "wellcomecollection-images" {
bucket = "wellcomecollection-images"
acl = "private"
# JP2 master assets (same set as catalogue API)
lifecycle_rule {
id = "library"
prefix = "library/"
transition {
days = 30
storage_class = "STANDARD_IA"
}
... | Annotate where processed images end up | Annotate where processed images end up
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
11a6efa35867c00a658c28ad22b152b2f5f5df0f | examples/aws-rds/main.tf | examples/aws-rds/main.tf | resource "aws_db_instance" "default" {
depends_on = "aws_security_group.default"
identifier = "${var.identifier}"
allocated_storage = "${var.storage}"
engine = "${var.engine}"
engine_version = "${lookup(var.engine_version, var.engine)}"
instance_class = "${var.instance_class}"
name = "${var.db_name}"
us... | resource "aws_db_instance" "default" {
depends_on = ["aws_security_group.default"]
identifier = "${var.identifier}"
allocated_storage = "${var.storage}"
engine = "${var.engine}"
engine_version = "${lookup(var.engine_version, var.engine)}"
instance_class = "${var.instance_class}"
name = "${var.db_name}"
... | Use [] around depends_on value. | Use [] around depends_on value. | HCL | mpl-2.0 | taliesins/terraform,rkhozinov/terraform,lwander/terraform,dwradcliffe/terraform,jrperritt/terraform,pradeepbhadani/terraform,ross/terraform,PaulAtkins/terraform,mevansam/terraform,bashtoni/terraform,paybyphone/terraform,JDiPierro/terraform,Ensighten/terraform,DevoKun/terraform,mtougeron/terraform,lstolyarov/terraform,A... |
8a0faa7246bd2321845ae34b2f61768e15f98bfd | test/fixtures/shared/variables.tf | test/fixtures/shared/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... | Add a default for random_string_for_testing | Add a default for random_string_for_testing
| HCL | apache-2.0 | terraform-google-modules/terraform-google-network,terraform-google-modules/terraform-google-network |
5f7badd8ddc308b115f3f2e854b9de76b8d97528 | .hashibot.hcl | .hashibot.hcl | behavior "regexp_issue_labeler" "panic_label" {
regexp = "panic:"
labels = ["crash", "bug"]
}
behavior "regexp_issue_notifier" "panic_notify" {
regexp = "panic:"
slack_channel = env.COMMITTERS_SLACK_CHANNEL
message = "Panic report! https://github.com/${var.repository}/issues/${var.issue_number} has... | behavior "regexp_issue_labeler" "panic_label" {
regexp = "panic:"
labels = ["crash", "bug"]
}
behavior "remove_labels_on_reply" "remove_stale" {
labels = ["waiting-response", "stale"]
only_non_maintainers = true
}
behavior "pull_request_size_labeler" "size" {
label_prefix = "size/"
label_map =... | Remove GitHub HashiBot notifications to Slack | Remove GitHub HashiBot notifications to Slack
These are no longer needed by the maintainers.
| HCL | mpl-2.0 | terraform-providers/terraform-provider-random,hashicorp/terraform-provider-random,hashicorp/terraform-provider-random,terraform-providers/terraform-provider-random |
d2ae3517f663396ff3fe6dd3f8b79196ee0b6f04 | test-infra/aws-vpn/locals.tf | test-infra/aws-vpn/locals.tf | data "aws_availability_zones" "available" {
state = "available"
}
locals {
global_tags = {
"environment" = "josec-vpn-test"
}
availability_zones = [for x in ["a", "b", "c"] : "${var.aws_region}${x}"]
prefix = "tp-test-vpn-"
}
variable "parent_domain" {
type = string
description = ... | data "aws_availability_zones" "available" {
state = "available"
}
locals {
global_tags = {
"environment" = "${var.child_subdomain}-eks-vpn"
}
availability_zones = [for x in ["a", "b", "c"] : "${var.aws_region}${x}"]
prefix = "tp-test-vpn-"
}
variable "parent_domain" {
type = string
... | Change a tag to not have my name on it | Change a tag to not have my name on it
Signed-off-by: Jose Cortes <90db7b580b32d49369f56eb8df8e548917a57096@datawire.io>
| HCL | apache-2.0 | datawire/telepresence,datawire/telepresence,datawire/telepresence |
e20273065f8f3ad0fcf3cbba1e272bb95cd5d469 | aws/modules/vpc/public.tf | aws/modules/vpc/public.tf | resource "aws_internet_gateway" "cncf" {
vpc_id = "${ aws_vpc.cncf.id }"
tags {
KubernetesCluster = "${ var.name }"
Name = "${ var.name }"
}
}
resource "aws_subnet" "cncf" {
availability_zone = "${ var.aws_availability_zone }"
cidr_block = "${ var.subnet_cidr }"
vpc_id = "${ aws_vpc.cncf.id }"
... | resource "aws_internet_gateway" "cncf" {
vpc_id = "${ aws_vpc.cncf.id }"
tags {
KubernetesCluster = "${ var.name }"
Name = "${ var.name }"
}
}
resource "aws_subnet" "cncf" {
availability_zone = "${ var.aws_availability_zone }"
cidr_block = "${ var.subnet_cidr }"
vpc_id = "${ aws_vpc.cncf.id }"
... | Create a new route table with the correct KubernetesCluster tags | Create a new route table with the correct KubernetesCluster tags
| HCL | apache-2.0 | cncf/cross-cloud |
641ee2beb6a057ef82e39a7cfecf51a792307421 | fog-aws-testing/terraform/s3_fogtesting.tf | fog-aws-testing/terraform/s3_fogtesting.tf | # NOTE: Bucket name must have exact same name as the dns recored, like example.com or box.example.com
resource "aws_s3_bucket" "fogtesting" {
bucket = "${var.project}.theworkmans.us"
region = var.region
website {
index_document = "index.html"
error_document = "error.html"
}
policy = <<POLICY
{
"Vers... | # NOTE: Bucket name must have exact same name as the dns recored, like example.com or box.example.com
resource "aws_s3_bucket" "fogtesting" {
bucket = "${var.project}.theworkmans.us"
website {
index_document = "index.html"
error_document = "error.html"
}
policy = <<POLICY
{
"Version":"2012-10-17",
"... | Update for Terraform AWS provider 3.0.0 | Update for Terraform AWS provider 3.0.0
| HCL | mit | FOGProject/fog-community-scripts,FOGProject/fog-community-scripts,FOGProject/fog-community-scripts |
594ede71de550b5479e5a71a7f8e719994834c83 | modules/event-folder-log-entry/variables.tf | modules/event-folder-log-entry/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... | Add missing new line to satisfy linter's wishes | Add missing new line to satisfy linter's wishes
| HCL | apache-2.0 | terraform-google-modules/terraform-google-event-function |
3fc22bc49bdf925f3be05c01645183de7e4a33f1 | common/modules/backup-storage-bucket/main.tf | common/modules/backup-storage-bucket/main.tf | terraform {
backend "gcs" {}
}
variable "cloudbuild_sa" {}
variable "backup_storage_bucket_name" {}
variable "project_id" {}
variable "infra_region" {}
provider "google" {
credentials = "${var.serviceaccount_key}"
project = "${var.project_id}"
region = "${var.infra_region}"
}
resource "google_storag... | Backup storage bucket for external org | Backup storage bucket for external org
| HCL | bsd-3-clause | mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra | |
63c31273efd732471188c4520c3cc841337d432c | tools/testnet/variables.tf | tools/testnet/variables.tf | variable "project_name" {
default = "raiden_testnet"
}
variable "keypair_name" {
description = "AWS SSH key pair"
default = "raiden-testnet"
}
variable "cidr_block" {
default = "10.0.0.0/16"
}
variable "ami_name_filter" {
default = "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"
}
var... | variable "project_name" {
default = "raiden_testnet"
}
variable "keypair_name" {
description = "AWS SSH key pair"
default = "raiden-testnet"
}
variable "cidr_block" {
default = "10.0.0.0/16"
}
variable "ami_name_filter" {
default = "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"
}
var... | Increase node count to 100 | [testnet] Increase node count to 100 | HCL | mit | tomashaber/raiden,tomashaber/raiden,tomashaber/raiden,hackaugusto/raiden,tomashaber/raiden,hackaugusto/raiden,tomashaber/raiden |
c1ad75e0bc38433a19cb7fdd26e381bdc93de7fd | terraform/modules/iam-user/main.tf | terraform/modules/iam-user/main.tf | variable "pgp_key" {}
variable "username" {}
variable "path" {
default = "/"
}
resource "aws_iam_user" "user" {
name = "${var.username}"
path = "${var.path}"
force_destroy = true
}
resource "aws_iam_user_login_profile" "user" {
user = "${aws_iam_user.user.name}"
pgp_key = "${var.pgp_key}... | Move iam-user in to modules | Move iam-user in to modules
| HCL | mit | kelledge/idkfa | |
451e1a3367d255ecad8971d87e3812600d147d2a | common/modules/gcp-project/service_accounts.tf | common/modules/gcp-project/service_accounts.tf | # GKE node service account used by nodes and service-account-assigner
resource "google_service_account" "gke_cluster_node" {
account_id = "gke-cluster-node"
display_name = "gke-cluster-node"
project = "${google_project.project.project_id}"
}
# Default service account for pods
resource "google_service_acco... | # GKE node service account used by nodes and service-account-assigner
resource "google_service_account" "gke_cluster_node" {
account_id = "gke-cluster-node"
display_name = "gke-cluster-node"
project = "${google_project.project.project_id}"
}
# Default service account for pods
resource "google_service_acco... | Change the comment of the backup-exporter SA | Change the comment of the backup-exporter SA
| HCL | bsd-3-clause | mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra |
2e42f1be90726d9b0d4569b7b81c62769cb8a6e5 | infrastructure-modules/prod/storage/storage.tf | infrastructure-modules/prod/storage/storage.tf | module "config-bucket" {
source = "github.com/stakater/blueprint-storage-aws.git//modules/s3"
name = "${var.stack_name}-prod-config"
}
module "cloudinit-bucket" {
source = "github.com/stakater/blueprint-storage-aws.git//modules/s3"
name = "${var.stack_name}-prod-cloudinit"
}
# Outputs to be accessible through... | module "config-bucket" {
source = "github.com/stakater/blueprint-storage-aws.git//modules/s3"
name = "${var.prod_config_bucket_name}"
}
module "cloudinit-bucket" {
source = "github.com/stakater/blueprint-storage-aws.git//modules/s3"
name = "${var.prod_cloudinit_bucket_name}"
}
# Outputs to be accessible throu... | Use prod bucket names from makefile vars | Use prod bucket names from makefile vars
| HCL | apache-2.0 | stakater/infrastructure-reference |
0eb0c9b783196c4485b2fcd9d13113d2f46c16ba | terraform/ses.tf | terraform/ses.tf | resource "aws_ses_domain_identity" "sw" {
domain = "${var.domain}"
}
resource "aws_ses_receipt_rule_set" "sw_check_in" {
rule_set_name = "sw-check-in"
}
resource "aws_ses_active_receipt_rule_set" "sw_check_in" {
rule_set_name = "sw-check-in"
}
resource "aws_ses_receipt_rule" "store" {
name = "sw-che... | resource "aws_ses_domain_identity" "sw" {
domain = "${var.domain}"
}
resource "aws_ses_receipt_rule_set" "sw_check_in" {
rule_set_name = "sw-check-in"
}
resource "aws_ses_active_receipt_rule_set" "sw_check_in" {
rule_set_name = "sw-check-in"
}
resource "aws_ses_receipt_rule" "store" {
name = "sw-che... | Use checkin@domain for SES receiver | Use checkin@domain for SES receiver
| HCL | mit | DavidWittman/serverless-southwest-check-in |
dae58cc4c282fbcd7ebe1a08361ba915939f8650 | builds/terraform/platform/iam_policy_document.tf | builds/terraform/platform/iam_policy_document.tf | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions ... | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions ... | Add the IAM GetUser permission | Add the IAM GetUser permission
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
5c2f66d239c25238708eb9a55b04990128018257 | 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-... | 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: https://government-paas-tea... | Fix typo in ec2-cpu-credits alert message | Fix typo in ec2-cpu-credits alert message
It shouldn't read "low on on CPU credits" or "out of on CPU credits" :)
| 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 |
9d583ab377f23dafb56363dea33a4bf2bfa92003 | google-cloud/fedora-coreos/kubernetes/versions.tf | google-cloud/fedora-coreos/kubernetes/versions.tf | # Terraform version and plugin versions
terraform {
required_version = ">= 0.13.0, < 2.0.0"
required_providers {
google = ">= 2.19, < 5.0"
template = "~> 2.2"
null = "~> 3.1"
ct = {
source = "poseidon/ct"
version = "~> 0.9"
}
}
}
| # Terraform version and plugin versions
terraform {
required_version = ">= 0.13.0, < 2.0.0"
required_providers {
google = ">= 2.19, < 5.0"
template = "~> 2.2"
null = ">= 2.1"
ct = {
source = "poseidon/ct"
version = "~> 0.9"
}
}
}
| Fix null provider version constraint on Google Cloud | Fix null provider version constraint on Google Cloud
* Part of https://github.com/poseidon/typhoon/pull/1074
| HCL | mit | poseidon/typhoon |
6b6418e764f5adc8acb4d862a479c4c06af7332d | tasks/install-pcf-aws/terraform/rds.tf | tasks/install-pcf-aws/terraform/rds.tf | resource "aws_db_subnet_group" "rds_subnet_group" {
name = "${var.environment}-rds_subnet_group"
subnet_ids = ["${aws_subnet.PcfVpcRdsSubnet_az1.id}", "${aws_subnet.PcfVpcRdsSubnet_az2.id}", "${aws_subnet.PcfVpcRdsSubnet_az3.id}"]
tags {
Name = "${var.environment} RDS DB subnet group"
}
}
resour... | resource "aws_db_subnet_group" "rds_subnet_group" {
name = "${var.environment}-rds_subnet_group"
subnet_ids = ["${aws_subnet.PcfVpcRdsSubnet_az1.id}", "${aws_subnet.PcfVpcRdsSubnet_az2.id}", "${aws_subnet.PcfVpcRdsSubnet_az3.id}"]
tags {
Name = "${var.environment} RDS DB subnet group"
}
}
resour... | Switch AWS RDS instance to mariadb 10.1.19 | Switch AWS RDS instance to mariadb 10.1.19
| HCL | apache-2.0 | sandyg1/pcf-pipelines,pivotal-cf/pcf-pipelines,sandyg1/pcf-pipelines,rahulkj/pcf-pipelines,BrianMMcClain/pcf-pipelines,mcb/pcf-pipelines,rahulkj/pcf-pipelines,pivotal-cf/pcf-pipelines,sandyg1/pcf-pipelines,cah-josephgeorge/pcf-pipelines,cah-josephgeorge/pcf-pipelines,pvsone/pcf-pipelines,cah-josephgeorge/pcf-pipelines,... |
e69c8b44a21bc06802790be01d8eccf63a6b018f | terraform/datadog/variables.tf | terraform/datadog/variables.tf | variable "job_instances" {
description = "List of pairs <job_name>:<job_count> of expected bosh job instance count"
default = []
}
variable "support_email" {
description = "DeskPro email address"
default = "govpaas-alerting-dev@digital.cabinet-office.gov.uk"
}
variable "enable_pagerduty_notifications"... | variable "job_instances" {
description = "List of pairs <job_name>:<job_count> of expected bosh job instance count"
default = []
}
variable "support_email" {
description = "DeskPro email address"
default = "govpaas-alerting-dev@digital.cabinet-office.gov.uk"
}
variable "enable_pagerduty_notifications"... | Update team manual link for Datadog alerts | Update team manual link for Datadog alerts
| 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 |
0f3dfb2957f4490bf3e9260dcf5a7376762ecc5e | midp20/heclfile.hcl | midp20/heclfile.hcl | # heclfile.hcl - this lets us run a default file or select some other
# file to run.
# Fetch the stored file, if it exists. Otherwise, use 'hecl.hcl' on
# the first root.
proc StoredHeclFile {} {
set hf ""
catch {
set hf [rms.get heclfile]
}
if { ne $hf "" } { return $hf }
set root [lindex [file.... | # heclfile.hcl - this lets us run a default file or select some other
# file to run.
# Fetch the stored file, if it exists. Otherwise, use 'hecl.hcl' on
# the first root.
proc StoredHeclFile {} {
set hf ""
catch {
set hf [rms.get heclfile]
}
if { ne $hf "" } { return $hf }
set root [lindex [file.... | Create recordstore prior to using it in save command. | Create recordstore prior to using it in save command.
| HCL | apache-2.0 | davidw/hecl |
ea8df7bc7997d63ade159026e9e71db655c02566 | terraform/modules/s3-sftp-bridge_lambda/scheduled_event.tf | terraform/modules/s3-sftp-bridge_lambda/scheduled_event.tf | ###################################################################################################
resource "aws_cloudwatch_event_rule" "trigger_retry" {
name = "${var.function_prefix}-${var.integration_name}"
description = "${var.retry_scheduled_event_description}"
schedule_expression = ... | ###################################################################################################
resource "aws_lambda_permission" "allow_scheduled_event" {
statement_id = "AllowExecutionFromScheduledEvent"
action = "lambda:InvokeFunction"
function_name = "${aws_lambda_function.s3_sftp_bridge_lambda.ar... | Add missing Lambda permission to allow scheduled event to fire | Add missing Lambda permission to allow scheduled event to fire
| HCL | mit | tomelliff/py-s3-sftp-bridge |
cb4cf42d4974890d28fcf80e980f097aaaa520ad | terraform/u-r-d/omnibus-standalone-inplace-upgrade.tf | terraform/u-r-d/omnibus-standalone-inplace-upgrade.tf | module "supermarket_omnibus_standalone_inplace_upgrade_server" {
source = "git@github.com:chef/es-terraform.git//modules/chef_managed_instance"
# Global Settings
environment = "${var.environment}"
# AWS Settings
aws_instance_type = "m4.large"
aws_private_key = "${var.aws_private_key}"
aws_key_na... | module "supermarket_omnibus_standalone_inplace_upgrade_server" {
source = "git@github.com:chef/es-terraform.git//modules/chef_managed_instance"
# Global Settings
environment = "${var.environment}"
# AWS Settings
aws_instance_type = "m4.large"
aws_private_key = "${var.aws_private_key}"
aws_key_na... | Disable API termination for delivered instances | Disable API termination for delivered instances
Signed-off-by: Tom Duffield <96835dd8bfa718bd6447ccc87af89ae1675daeca@chef.io>
| HCL | apache-2.0 | chef/supermarket,robbkidd/supermarket,robbkidd/supermarket,chef/supermarket,robbkidd/supermarket,chef/supermarket,robbkidd/supermarket,chef/supermarket,chef/supermarket |
55a516213e46d1657809272eb9af3b6d1e9d7761 | infrastructure/env-dev/main.tf | infrastructure/env-dev/main.tf | variable "domain" {}
variable "region" {}
variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "env_vars" { type = "map" }
variable "response_not_found" { type = "map" }
variable "response_forbidden" { type = "map" }
provider "aws" {
region = ... | variable "domain" {
description = "Domain name for the deployed site, eg 'lieu.io'"
}
variable "region" {
description = "AWS region, eg 'us-east-1'"
}
variable "backend_bucket" {
description = "AWS bucket name for S3 backend to store Terraform state"
default = "terraform-... | Document root terraform file and specify S3 backend | Document root terraform file and specify S3 backend
| HCL | mit | dereklieu/formation |
52fe21b68b9c0d2849942c6a8bf3bb649bfef239 | community/modules/scheduler/htcondor-configure/versions.tf | community/modules/scheduler/htcondor-configure/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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Add provider_meta to htcondor-configure module | Add provider_meta to htcondor-configure module
| HCL | apache-2.0 | GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit |
f7694c0f94b4d6f65b8c828bff0720bf9628199a | examples/simple_example/main.tf | examples/simple_example/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... | Revert "use env var for gcloud login" | Revert "use env var for gcloud login"
This reverts commit 30e3556f4dd3c392755af7ca6b1f570ebda34b90 [formerly 4a3c7760d893ab7eb8faf77ebdb367ecb91fc74c].
Former-commit-id: 91ded3a4baa33d4b7127e2ebe21819ffae5886f8 | HCL | apache-2.0 | terraform-google-modules/terraform-google-gcloud,terraform-google-modules/terraform-google-gcloud |
14a69c9997f0a50ca860ef75aa0d9d1d8ec197f3 | feedpaper-data/infrastructure.tf | feedpaper-data/infrastructure.tf | variable "db_data" {}
variable "iam_role_name" {}
variable "lambda_function_clean_data" {}
provider "aws" {
region = "ap-southeast-2"
}
provider "aws" {
alias = "us"
region = "us-west-2"
}
resource "aws_dynamodb_table" "data" {
provider = "aws.us"
name = "${var.db_data}"
read_capacity = 1
... | variable "db_data" {}
variable "iam_role_name" {}
variable "lambda_function_clean_data" {}
provider "aws" {
region = "ap-southeast-2"
}
provider "aws" {
alias = "us"
region = "us-west-2"
}
resource "aws_dynamodb_table" "data" {
provider = "aws.us"
name = "${var.db_data}"
read_capacity = 1
... | Enable TTL on dynamodb table - requires TF 0.9.5 or newer. | Enable TTL on dynamodb table - requires TF 0.9.5 or newer.
| HCL | mit | cliffano/feedpaper,cliffano/feedpaper,cliffano/feedpaper |
b09b6d1291ad954df9f006df6d6328ac6cbabee1 | terraform/modules/secret/main.tf | terraform/modules/secret/main.tf | resource google_secret_manager_secret secret {
provider = google-beta
project = var.project
secret_id = var.name
replication {
automatic = true
}
}
resource google_secret_manager_secret_version secret {
provider = google-beta
secret = google_secret_manager_secret.secret.id
secret_data = var... | resource google_secret_manager_secret secret {
project = var.project
secret_id = var.name
replication {
automatic = true
}
}
resource google_secret_manager_secret_version secret {
secret = google_secret_manager_secret.secret.id
secret_data = var.secret_data
}
resource google_secret_manager_secr... | Use GA version of provider secrets | Use GA version of provider secrets
| HCL | apache-2.0 | GoogleCloudPlatform/django-demo-app-unicodex,GoogleCloudPlatform/django-demo-app-unicodex,GoogleCloudPlatform/django-demo-app-unicodex |
843079f33a00b86d96e6898572b384af89862850 | test/integration/connect/envoy/case-ingress-gateway-sds/service_gateway.hcl | test/integration/connect/envoy/case-ingress-gateway-sds/service_gateway.hcl | services {
name = "ingress-gateway"
kind = "ingress-gateway"
proxy {
config {
envoy_extra_static_clusters_json = <<EOF
{
"name": "sds-cluster",
"connect_timeout": "5s",
"typed_extension_protocol_options": {
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
"@type": "type.googl... | services {
name = "ingress-gateway"
kind = "ingress-gateway"
proxy {
config {
# Note that http2_protocol_options is a deprecated field and Envoy 1.17
# and up would prefer:
# typed_extension_protocol_options:
# envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
# ... | Fix integration test for older Envoy versions | Fix integration test for older Envoy versions
| HCL | mpl-2.0 | hashicorp/consul,hashicorp/consul,hashicorp/consul,hashicorp/consul |
2494a715f524c1155b23082959712ff7791fbbc8 | code/terraform/05-tips-and-tricks/live/global/existing-iam-user/main.tf | code/terraform/05-tips-and-tricks/live/global/existing-iam-user/main.tf | provider "aws" {
region = "us-east-1"
}
resource "aws_iam_user" "existing_user" {
# TODO: you should change this to the username of an IAM user that already
# exists so you can practice using the terraform import command
name = "yevgeniy.brikman"
}
| provider "aws" {
region = "us-east-1"
}
resource "aws_iam_user" "existing_user" {
# You should change this to the username of an IAM user that already
# exists so you can practice using the terraform import command
name = "yevgeniy.brikman"
}
| Update comment in IAM code | Update comment in IAM code
| HCL | mit | wgstoddard/tf,iliyahoo/terraform-up-and-running-code,wgstoddard/tf,iliyahoo/terraform-up-and-running-code |
2ea49354441499b77065d7292baefe393be40d4e | terraform/modules/jenkins/ec2.tf | terraform/modules/jenkins/ec2.tf | provider "aws" {
region = "eu-west-1"
}
resource "aws_instance" "jenkins2" {
ami = "ami-785db401"
instance_type = "t2.large"
iam_instance_profile = "${aws_iam_instance_profile.jenkins.name}"
key_name = "${aws_key_pair.jenkins.key_name}"
vpc_security_group_ids = "... | provider "aws" {
region = "eu-west-1"
}
resource "aws_instance" "jenkins2" {
ami = "ami-2a7d75c0"
instance_type = "t2.large"
iam_instance_profile = "${aws_iam_instance_profile.jenkins.name}"
key_name = "${aws_key_pair.jenkins.key_name}"
vpc_security_group_ids = "... | Update AMI with latest Xenial (Ubuntu 16.04 LTS) released 2018-06-27. | Update AMI with latest Xenial (Ubuntu 16.04 LTS) released 2018-06-27.
| HCL | mit | alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws |
dac1975344b7f296bc065db809650047faffbd3c | data_science/terraform/network.tf | data_science/terraform/network.tf | module "network" {
source = "git::https://github.com/wellcometrust/terraform.git//network?ref=v11.0.0"
name = "${var.namespace}"
cidr_block = "${var.vpc_cidr_block}"
az_count = "2"
}
| module "network" {
source = "git::https://github.com/wellcometrust/terraform.git//network?ref=v11.0.0"
name = "${var.namespace}"
cidr_block = "${var.vpc_cidr_block}"
az_count = "2"
}
resource "aws_vpc_endpoint" "s3" {
vpc_id = "${module.network.vpc_id}"
service_name = "com.amazonaws.${var... | Add a VPC endpoint for S3 in the data_science stack | Add a VPC endpoint for S3 in the data_science stack
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api |
212a3e5975a0b8c79fa12f731980a0519afc2012 | terraform/main.tf | terraform/main.tf | provider "google" {
project = "infra-179717"
region = "europe-west1"
}
resource "google_compute_instance" "app" {
name = "reddit-app"
machine_type = "g1-small"
zone = "europe-west1-b"
metadata {
sshKeys = "appuser:${file("~/.ssh/otus_devops_appuser.pub")}"
}
# определение загруз... | provider "google" {
project = "infra-179717"
region = "europe-west1"
}
resource "google_compute_instance" "app" {
name = "reddit-app"
machine_type = "g1-small"
zone = "europe-west1-b"
metadata {
sshKeys = "appuser:${file("~/.ssh/otus_devops_appuser.pub")}"
}
# определение загруз... | Add resource 'firewall_puma' to open tcp port | Add resource 'firewall_puma' to open tcp port
| HCL | mit | DmitriySh/infra,DmitriySh/infra,DmitriySh/infra |
27f79b71e2139480b98e3cb42b5386930d52f25c | 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-deployment:%s... | resource "datadog_timeboard" "concourse-jobs" {
title = "${format("%s job runtime difference", var.env) }"
description = "vs previous hour"
read_only = false
graph {
title = "Runtime changes vs hour ago"
viz = "change"
request {
q = "${format("avg:concourse.build.finished{bosh-deployment:%s... | Add Continuous Smoke Tests dashboard | Add Continuous Smoke Tests dashboard
Blue bars = successful runs, Orange bars = failures.
| 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.