debug
This commit is contained in:
parent
fde00115be
commit
457573e05c
@ -13,28 +13,27 @@ from aws import key_pair
|
||||
|
||||
from pulumi_command import local
|
||||
|
||||
#vpc_id = vpc()
|
||||
#az_list = availability_zones()
|
||||
#sg_id = security_group( vpc_id )
|
||||
#igw_id = internet_gateway( vpc_id )
|
||||
#route_table_id = route_table( vpc_id, igw_id )
|
||||
#subnets = subnets(vpc_id, az_list, route_table_id, 'public' )
|
||||
vpc_id = vpc()
|
||||
az_list = availability_zones()
|
||||
sg_id = security_group( vpc_id )
|
||||
igw_id = internet_gateway( vpc_id )
|
||||
route_table_id = route_table( vpc_id, igw_id )
|
||||
subnets = subnets(vpc_id, az_list, route_table_id, 'public' )
|
||||
|
||||
key = local.Command("random",
|
||||
create="env | grep SSH_PUBLIC_KEY"
|
||||
ssh_key = local.Command("random",
|
||||
create="env | grep SSH_PUBLIC_KEY | awk -F= '{print $2}'"
|
||||
)
|
||||
|
||||
pulumi.export("key", key.stdout)
|
||||
pulumi.export("sshkey", key.stdout)
|
||||
|
||||
|
||||
#key_pair = pulumi.aws.ec2.KeyPair("deployer", public_key=ssh_key)
|
||||
key_pair = pulumi.aws.ec2.KeyPair("deployer", public_key=ssh_key)
|
||||
|
||||
# Create an AWS resource (S3 Bucket)
|
||||
#bucket = s3.Bucket('my-bucket')
|
||||
|
||||
# Export the name of the bucket
|
||||
#pulumi.export('bucket_name', bucket)
|
||||
#pulumi.export("vpc", vpc_id)
|
||||
#pulumi.export("sg", sg_id)
|
||||
#pulumi.export("subnets", subnets)
|
||||
#pulumi.export("keypair", key_pair.key_name)
|
||||
pulumi.export('bucket_name', bucket)
|
||||
pulumi.export("vpc", vpc_id)
|
||||
pulumi.export("sg", sg_id)
|
||||
pulumi.export("subnets", subnets)
|
||||
pulumi.export("keypair", key_pair.key_name)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user