Steps to recreate the issue:
- Run "aws configure sso" to configure an AWS SSO profile
- Run "export AWS_PROFILE=your-profile-name" to set the AWS_PROFILE var to your newly-made SSO profile
- Run formae apply command
Result
Deployment of resources fail.
Forma spec
amends "@formae/forma.pkl"
import "@formae/formae.pkl"
import "@aws/aws.pkl"
import "@aws/ec2/vpc.pkl"
import "@aws/ec2/subnet.pkl"
description {
text = "This forma deploys a basic VPC and some subnets for testing"
confirm = false
}
forma {
// Every forma needs a stack, for some reason
new formae.Stack {
label = "network"
description = "My network"
}
new formae.Target {
label = "basic-acct-2"
config = new aws.Config {
region = "us-east-1"
}
}
// Type definitions/schemas are still changing pretty often
local myVpc = new vpc.VPC {
label = "test-vpc"
cidrBlock = "172.16.0.0/16"
}
myVpc
new subnet.Subnet {
label = "test-subnet"
vpcId = myVpc.res.vpcId
cidrBlock = "172.16.0.0/18"
availabilityZone = "us-east-1a"
}
}
Steps to recreate the issue:
Result
Deployment of resources fail.
Forma spec