Python Pulumi AWS S3: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Python Pulumi Code Examples =Overview= <syntaxhighlight lang='python'> from pulumi_aws import ssm parameter = ssm....")
 
Line 4: Line 4:
=Overview=
=Overview=
<syntaxhighlight lang='python'>
<syntaxhighlight lang='python'>
from pulumi_aws import ssm
import pulumi
from pulumi_aws import s3


parameter = ssm.Parameter("/test/a", type="String", value="Test");
bucket = s3.Bucket('experimental-ovidiu')
 
object = s3.BucketObject(
    "test.txt",
    bucket=bucket.id,
    source=pulumi.FileAsset('./test.txt')
)
 
pulumi.export("bucket_name", bucket.id)
</syntaxhighlight>
</syntaxhighlight>

Revision as of 01:21, 13 January 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)