Skip to content

Commit

Permalink
Add support to create S3 bucket if not present
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Hoekstra <[email protected]>
  • Loading branch information
shoekstra committed Sep 30, 2024
1 parent be0dbed commit 1f68e8e
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 246 deletions.
56 changes: 0 additions & 56 deletions examples/basic/kms.tf

This file was deleted.

18 changes: 14 additions & 4 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
terraform {
required_version = ">= 1.3"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.39.0"
}
}
}

provider "aws" {
region = "eu-west-1"
}

module "aws-energy-labeler" {
source = "../../"

image_uri = "123456789012.dkr.ecr.eu-west-1.amazonaws.com/energy-labeler:latest"
kms_key_arn = module.kms_key.arn
image_uri = "123456789012.dkr.ecr.eu-west-1.amazonaws.com/energy-labeler:latest"

config = {
export-path = "s3://bucket-name/folder/"
organizations-zone-name = "SOMETHING"
export_path = "s3://bucket_name/folder/"
organizations_zone_name = "MYZONE"
}
}
10 changes: 0 additions & 10 deletions examples/basic/versions.tf

This file was deleted.

Loading

0 comments on commit 1f68e8e

Please sign in to comment.