1008 test implementation
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
24
docs/learn/tests/cloudformation/deletion.cue
Normal file
24
docs/learn/tests/cloudformation/deletion.cue
Normal file
@@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"alpha.dagger.io/os"
|
||||
"alpha.dagger.io/aws"
|
||||
"alpha.dagger.io/dagger"
|
||||
)
|
||||
|
||||
// Remove Cloudformation Stack
|
||||
stackRemoval: {
|
||||
// Cloudformation Stackname
|
||||
stackName: string & dagger.#Input
|
||||
|
||||
ctr: os.#Container & {
|
||||
image: aws.#CLI & {
|
||||
config: awsConfig
|
||||
}
|
||||
always: true
|
||||
env: STACK_NAME: stackName
|
||||
command: """
|
||||
aws cloudformation delete-stack --stack-name $STACK_NAME
|
||||
"""
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user