Got into Pulumi. First tutorial got this error:
"""A Google Cloud Python Pulumi program"""
import pulumi
from pulumi_gcp import storage
# Create a GCP resource (Storage Bucket)
bucket = storage.Bucket('my-bucket', location="US")
# Export the DNS name of the bucket
pulumi.export('bucket_name', bucket.url)
bucketObject = storage.BucketObject(
'index.html',
bucket=bucket.name,
source=pulumi.FileAsset('index.html')
)
bucket = storage.Bucket('my-bucket',
website=storage.BucketWebsiteArgs(
main_page_suffix='index.html'),
uniform_bucket_level_access=True,
)
**``` error: Program failed with an unhandled exception: Traceback (most recent call last): File "/Users/name/quickstart/./main.py", line 17, in bucket = storage.Bucket('my-bucket', File "/Users/name/quickstart/venv/lib/python3.9/site-packages/pulumi_gcp/storage/bucket.py", line 887, in init self._internal_init(resource_name, *args, **kwargs) File "/Users/name/quickstart/venv/lib/python3.9/site-packages/pulumi_gcp/storage/bucket.py", line 927, in _internal_init raise TypeError("Missing required property 'location'") TypeError: Missing required property 'location'
Following this: https://www.pulumi.com/docs/get-started/gcp/deploy-changes/