868fd018f4
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
26 lines
491 B
CUE
26 lines
491 B
CUE
package testing
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
|
|
"dagger.io/terraform"
|
|
)
|
|
|
|
TestData: dagger.#Artifact
|
|
|
|
TestConfig: awsConfig: {
|
|
accessKey: string
|
|
secretkey: string
|
|
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
|
|
}
|
|
}
|