Python Pulumi AWS S3: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


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

Revision as of 01:23, 13 January 2022

Internal

Overview

import pulumi
from pulumi_aws import s3

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

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

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