This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/stdlib/terraform/s3/main.cue
Andrea Luzzardi b979e2e994 stdlib: terraform support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-07 12:00:45 -07:00

25 lines
481 B
CUE

package testing
import (
"dagger.io/dagger"
"dagger.io/terraform"
"dagger.io/aws"
)
TestData: dagger.#Artifact
TestConfig: awsConfig: aws.#Config & {
region: "us-east-2"
}
TestTerraform: apply: terraform.#Configuration & {
source: TestData
env: {
AWS_ACCESS_KEY_ID: TestConfig.awsConfig.accessKey
AWS_SECRET_ACCESS_KEY: TestConfig.awsConfig.secretKey
AWS_DEFAULT_REGION: TestConfig.awsConfig.region
AWS_REGION: TestConfig.awsConfig.region
}
}