Skip to content

Flaconi/terraform-commercetools-custom-applications

Repository files navigation

terraform-commercetools-custom-applications

Module to setup cloudfront, s3 and ssm for custom applications

lint test Tag License

Providers

Name Version
aws >= 5

Requirements

Name Version
terraform ~> 1.3
aws >= 5

Required Inputs

The following input variables are required:

Description: application name

Type: string

Description: name of the bucket to used to upload the custom application

Type: string

Description: bucket where the cloudfront logs will be send to

Type: string

Description: prefix for the ssm path for each custom application

Type: string

Description: aws account id used to build access policy for the cdn to s3

Type: string

Description: map of custom applications to be setup

Type:

map(object({
    tags           = optional(map(string), {})
    application_id = string
    additional_ssm_parameters = optional(list(object({
      name  = string
      type  = optional(string, "SecureString") # String, StringList or SecureString
      value = string
    })), [])
  }))

Optional Inputs

The following input variables are optional (have default values):

Description: Map of custom tags for the provisioned resources

Type: map(string)

Default: {}

Outputs

Name Description
s3_bucket_arn The ARN of the bucket. Will be of format arn:aws:s3:::bucketname.

License

MIT License

Copyright (c) 2023 Flaconi GmbH