Python Pulumi AWS S3

From NovaOrdis Knowledge Base
Revision as of 01:00, 15 April 2022 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

import pulumi
from pulumi_aws import s3

bucket = s3.Bucket('experimental-ovidiu')

object = s3.BucketObject(
    "test.txt",
    bucket=bucket.id,
    source=pulumi.FileAsset('./test.txt')
)

pulumi.export("bucket_name", bucket.id)