Skip to content

Commit

Permalink
Add example for uptest
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Tsarev <[email protected]>
  • Loading branch information
ytsarev committed Apr 4, 2023
1 parent af7bebd commit 42feed5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions examples/workspace-inline-aws.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: tf.upbound.io/v1beta1
kind: Workspace
metadata:
name: sample-inline
spec:
providerConfigRef:
name: aws-eu-west-1
forProvider:
source: Inline
module: |
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
tags = {
Name = var.vpcName
}
}
resource "aws_subnet" "main" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.1.0/24"
}
output "vpc_id" {
value = aws_vpc.main.id
}
output "subnet_id" {
value = aws_subnet.main.id
}
variable "vpcName" {
description = "VPC name"
type = string
}
vars:
- key: vpcName
value: sample-tf-inline

0 comments on commit 42feed5

Please sign in to comment.