ambitious-furniture-60362
12/21/2018, 8:22 PMwhite-balloon-205
12/21/2018, 8:32 PMsiteBucket, err := s3.NewBucket(ctx, "s3-website-bucket", &s3.BucketArgs{
Website: map[string]interface{}{
"indexDocument": "index.html",
},
Tags: map[string]interface{}{
"name": "hello",
},
})
white-balloon-205
12/21/2018, 8:33 PMambitious-furniture-60362
12/21/2018, 8:38 PMambitious-furniture-60362
12/21/2018, 8:40 PMambitious-furniture-60362
12/21/2018, 10:19 PMObjectACL
and BucketObject
in that case how I should proceed ?
Thanks 🙂
Previewing destroy (gcp-go-dev):
- gcp:storage:ObjectACL indexAllUsers delete
- gcp:storage:Bucket pulumibucket delete
- gcp:storage:BucketObject index.html delete
- pulumi:pulumi:Stack pulumi-poc-gcp-go-dev delete
Resources:
4 changes
- 4 to delete
Destroying (gcp-go-dev):
- gcp:storage:Bucket pulumibucket deleting
- gcp:storage:BucketObject index.html deleting
- gcp:storage:ObjectACL indexAllUsers deleting
- gcp:storage:BucketObject index.html deleted
- gcp:storage:ObjectACL indexAllUsers deleting error: Plan apply failed: deleting urn:pulumi:gcp-go-dev::pulumi-poc::gcp:storage/objectACL:ObjectACL::indexAllUsers: Error deleting entity allUsers ACL: googleapi: Error 404: No such object: my-bucket-pulumi-poc-olopez/index.html, notFound
- gcp:storage:ObjectACL indexAllUsers **deleting failed** error: Plan apply failed: deleting urn:pulumi:gcp-go-dev::pulumi-poc::gcp:storage/objectACL:ObjectACL::indexAllUsers: Error deleting entity allUsers ACL: googleapi: Error 404: No such object: my-bucket-pulumi-poc-olopez/index.html, notFound
- gcp:storage:Bucket pulumibucket deleting error: Plan apply failed: transport is closing
- gcp:storage:Bucket pulumibucket **deleting failed** error: Plan apply failed: transport is closing
pulumi:pulumi:Stack pulumi-poc-gcp-go-dev
chilly-photographer-60932
01/12/2019, 8:39 PMchilly-photographer-60932
01/12/2019, 11:54 PMtype DefaultSecurityGroupArgs struct {
// Can be specified multiple times for each
// egress rule. Each egress block supports fields documented below.
Egress interface{}
// Can be specified multiple times for each
// ingress rule. Each ingress block supports fields documented below.
Ingress interface{}
RevokeRulesOnDelete interface{}
// A mapping of tags to assign to the resource.
Tags interface{}
// The VPC ID. **Note that changing
// the `vpc_id` will _not_ restore any default security group rules that were
// modified, added, or removed.** It will be left in its current state
VpcId interface{}
}
What type should I pass for Ingress
? I tried map[string]interface{})
. It fails with ingress: should be a list
chilly-photographer-60932
01/13/2019, 4:49 AMpulumi.Run(func(ctx *pulumi.Context) error {
userArgs := &iam.UserArgs{Name:"test"}
user,e := iam.NewUser(ctx,"test",userArgs)
if e!= nil {
return e
}
accessKeyArgs := &iam.AccessKeyArgs{User:"test"}
key, i := iam.NewAccessKey(ctx, "test", accessKeyArgs)
fmt.Println(key)
if i != nil{
return i
}
profile, e := iam. pulumi.Run(func(ctx *pulumi.Context) error {
userArgs := &iam.UserArgs{Name:"test"}
user,e := iam.NewUser(ctx,"test",userArgs)
if e!= nil {
return e
}
accessKeyArgs := &iam.AccessKeyArgs{User:"test"}
key, i := iam.NewAccessKey(ctx, "test", accessKeyArgs)
fmt.Println(key)
if i != nil{
return i
}
profile, e := iam.NewUserLoginProfile(ctx, "test",
&iam.UserLoginProfileArgs{PasswordLength: 10, PasswordResetRequired: true,
User:"test",PgpKey:key.PgpKey()})
if e != nil {
return e
}
ctx.Export("user", user.Name())
ctx.Export("userNam", profile.URN())
ctx.Export("key", accessKeyArgs.PgpKey)
return nil
})(ctx, "test",
&iam.UserLoginProfileArgs{PasswordLength: 10, PasswordResetRequired: true,
User:"test",PgpKey:key.PgpKey()})
if e != nil {
return e
}
ctx.Export("user", user.Name())
ctx.Export("userNam", profile.URN())
ctx.Export("key", accessKeyArgs.PgpKey)
return nil
})
I am unable to create NewUserLoginProfile
without a PGP key, how do I create one?incalculable-angle-91273
01/16/2019, 12:37 AMpackage main
import (
"<http://github.com/pulumi/pulumi/sdk/go/pulumi|github.com/pulumi/pulumi/sdk/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ctx.Export("x", "hello")
return nil
})
}
incalculable-angle-91273
01/16/2019, 12:37 AMpulumi up
but when I get this for my stack output:
â–¶ pulumi stack output
Current stack outputs (0):
No output values currently in this stack
aloof-tailor-93191
03/19/2019, 2:51 AMworried-oxygen-59641
05/23/2019, 4:46 PMcreamy-potato-29402
05/23/2019, 4:57 PMcreamy-potato-29402
05/23/2019, 5:43 PMports: []
, but in Go you have to do something like ports: ContainerPortArray{}
.creamy-potato-29402
05/23/2019, 5:43 PMports
will have to be interface{}
creamy-potato-29402
05/23/2019, 5:43 PMcreamy-potato-29402
05/23/2019, 5:44 PMcreamy-potato-29402
05/23/2019, 5:45 PMwhite-balloon-205
05/23/2019, 6:07 PMhelpful-bear-175
07/26/2019, 8:26 PM<https://github.com/pulumi/pulumi-tf-provider-boilerplate>`` to build a new pulumi provider. when I run ```make ensure
helpful-bear-175
07/26/2019, 8:26 PM/bin/bash: gomod-doccopy: command not found
helpful-bear-175
07/26/2019, 8:27 PM16:15 $ go get <http://github.com/pulumi/scripts/gomod-doccopy|github.com/pulumi/scripts/gomod-doccopy>
go: finding <http://github.com/pulumi/scripts/gomod-doccopy|github.com/pulumi/scripts/gomod-doccopy> latest
go: finding <http://github.com/pulumi/scripts|github.com/pulumi/scripts> latest
gentle-diamond-70147
07/26/2019, 8:50 PMgo get <http://github.com/pulumi/scripts/gomod-doccopy|github.com/pulumi/scripts/gomod-doccopy>
?helpful-bear-175
07/26/2019, 8:55 PMIn the root of the repository, run:
go get <http://github.com/pulumi/scripts/gomod-doccopy|github.com/pulumi/scripts/gomod-doccopy>
helpful-bear-175
07/26/2019, 8:56 PMhelpful-bear-175
07/26/2019, 9:00 PMgentle-diamond-70147
07/26/2019, 9:00 PMhelpful-bear-175
07/26/2019, 9:00 PMhelpful-bear-175
07/26/2019, 9:03 PMhelpful-bear-175
07/26/2019, 9:03 PM