21 lines
390 B
Python
21 lines
390 B
Python
import pulumi_aws as aws
|
|
|
|
from .common import aws_region
|
|
|
|
|
|
default_vpc = aws.ec2.get_vpc(default=True)
|
|
|
|
subnets = aws.ec2.get_subnets(
|
|
filters=[
|
|
aws.ec2.GetSubnetsFilterArgs(
|
|
name="vpc-id",
|
|
values=[default_vpc.id],
|
|
)
|
|
]
|
|
)
|
|
|
|
s3_endpoint = aws.ec2.get_vpc_endpoint(
|
|
vpc_id=default_vpc.id,
|
|
service_name=f'com.amazonaws.{aws_region}.s3',
|
|
)
|