sparse-intern-71089
08/23/2021, 10:44 AMbored-table-20691
08/23/2021, 4:27 PMthousands-planet-78612
08/24/2021, 7:58 AMsiteBucket
variable to get s3 resources properties in the form of string i am having trouble converting the values into string .
Is there any thing i am missing.
func createPulumiProgram(content string, bname string) pulumi.RunFunc {
return func(ctx *pulumi.Context) error {
// our program defines a s3 website.
// here we create the bucket
siteBucket, err := s3.NewBucket(ctx, bname, &s3.BucketArgs{
Website: s3.BucketWebsiteArgs{
IndexDocument: pulumi.String("index.html"),
},
})
if err != nil {
return err
}
Region := siteBucket.Region
BucketDomainName := siteBucket.BucketDomainName
Bucket := siteBucket.Bucket
}
I would like to store the following infromation in DB and that why i am trying to convert the value to string however sitebucket
returns pulumi.string format which i can not store in DB.
"outputs": {
"accelerationStatus": "",
"acl": "private",
"arn": "arn:aws:s3:::s3-website-bucket-7a7e85d",
"bucket": "s3-website-bucket-7a7e85d",
"bucketDomainName": "<http://s3-website-bucket-7a7e85d.s3.amazonaws.com|s3-website-bucket-7a7e85d.s3.amazonaws.com>",
"bucketRegionalDomainName": "<http://s3-website-bucket-7a7e85d.s3.us-east-2.amazonaws.com|s3-website-bucket-7a7e85d.s3.us-east-2.amazonaws.com>",
"corsRules": [],
"forceDestroy": false,
"grants": [],
"hostedZoneId": "Z2O1EMRO9K5GLX",
"id": "s3-website-bucket-7a7e85d",
"lifecycleRules": [],
"loggings": [],
"objectLockConfiguration": null,
"region": "us-east-2",
"replicationConfiguration": null,
"requestPayer": "BucketOwner",
"serverSideEncryptionConfiguration": null,
"tags": {},
"versioning": {
"enabled": false,
"mfaDelete": false
},
bored-table-20691
08/24/2021, 4:42 PMthousands-planet-78612
08/25/2021, 12:40 PM