Skip to content

Commit

Permalink
cleanup gcp example stack
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalkaoz committed Nov 7, 2023
1 parent 32c869e commit e7349bd
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions example/stack_gcp/main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
provider "aws" {
region = "eu-central-1"
provider "google" {
project = var.project
region = var.region
}

data "aws_caller_identity" "self" {}

variable "region" {}
variable "environment" {}
variable "project" {}
Expand All @@ -13,17 +12,17 @@ variable "foo" {
type = bool
}

resource "aws_s3_bucket" "test" {
bucket = "test-${var.environment}-${data.aws_caller_identity.self.account_id}"
}

resource "aws_s3_bucket" "state" {}
resource "google_storage_bucket" "state" {
location = "EU"
name = "${var.project}-${var.account}-test"
}

terraform {
backend "gcs" {
}
}

output "foo" {
value = "test-${var.environment}-${data.aws_caller_identity.self.account_id}"
value = google_storage_bucket.state.id
}

0 comments on commit e7349bd

Please sign in to comment.