Sha256: b4fdbb1fefe3a99aef9c3807a81b69ac74b4d1485c57ec2bf04645461a745c4f

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

locals {
  s3_service_name = "<%= app_name %>-terraform-state"
}

module "s3" {
  source = "github.com/gsa-tts/terraform-cloudgov//s3?ref=v1.0.0"

  cf_org_name   = "<%= cloud_gov_organization %>"
  cf_space_name = "<%= cloud_gov_production_space %>"
  name          = local.s3_service_name<% if cloud_gov_organization == "sandbox-gsa" %>
  s3_plan_name  = "basic-sandbox"<% end %>
}

resource "cloudfoundry_service_key" "bucket_creds" {
  name             = "${local.s3_service_name}-access"
  service_instance = module.s3.bucket_id
}

output "bucket_credentials" {
  value     = cloudfoundry_service_key.bucket_creds.credentials
  sensitive = true
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_template_18f-1.2.0 lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/main.tf.tt
rails_template_18f-1.1.0 lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/main.tf.tt
rails_template_18f-1.0.0 lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/main.tf.tt
rails_template_18f-0.8.2 lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/main.tf.tt