kind: component
version: 1

requires:
  - aws
  - terraform

parameters:
  - name: bucket.name
    env: TF_VAR_name
  - name: bucket.acl
    value: "private"
    env: TF_VAR_acl
  - name: cloud.region
    value: "eu-central-1"
    fromEnv: AWS_REGION
  - name: cloud.profile
    value: "default"
    fromEnv: AWS_PROFILE
  - name: bucket.region
    value: ${cloud.region}
    env: TF_VAR_bucket_region

outputs:
  - name: bucket.kind
    value: s3
  - name: bucket.region
    fromTfVar: s3_bucket_region
  - name: bucket.name
  - name: bucket.host
    fromTfVar: s3_bucket_endpoint
  - name: bucket.port
    value: 443
