python-terrascript/docs/examples/aws/provider/endpoints.py

19 lines
406 B
Python

import terrascript
import terrascript.provider
import terrascript.resource
config = terrascript.Terrascript()
config += terrascript.provider.aws(
region="us-east-1",
version="~> 2.0",
endpoints=terrascript.Block(
dynamodb="http://localhost:4569",
s3="http://localhost:4572",
),
)
config += terrascript.resource.aws_vpc("example", cidr_block="10.0.0.0/16")
print(config)