Python Pulumi AWS S3: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
=Internal=
=Internal=
* [[Python_Pulumi_Code_Examples#Code_Examples|Python Pulumi Code Examples]]
* [[Pulumi_Programming_Model#Other_Code_Examples|Pulumi Programming Model | Code Examples]]


=Overview=
=Overview=

Latest revision as of 01:00, 15 April 2022

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)