incalculable-sundown-82514
10/23/2018, 6:35 PMincalculable-sundown-82514
10/23/2018, 6:36 PMnice-lifeguard-94902
10/24/2018, 8:40 PMearly-musician-41645
10/24/2018, 10:44 PMpulumi new
I get this eror:
$ pulumi new aws-python --dir vnext-cluster-poc
This command will walk you through creating a new Pulumi project.
Enter a value or leave blank to accept the default, and press <ENTER>.
Press ^C at any time to quit.
project name: (vnext-cluster-poc)
project description: (A minimal AWS Python Pulumi program)
Created project 'vnext-cluster-poc'.
stack name: (vnext-cluster-poc-dev)
Created stack 'vnext-cluster-poc-dev'
aws:region: The AWS region to deploy into: (us-east-1) us-west-2
Installing dependencies...
Your new project is configured and ready to go!
Previewing update (vnext-cluster-poc-dev):
Type Name Plan Info
+ pulumi:pulumi:Stack vnext-cluster-poc-vnext-cluster-poc-dev create
└─ pulumi:providers:aws default 1 error
Diagnostics:
pulumi:providers:aws (default):
error: no resource plugin 'aws' found in the workspace or on your $PATH
error: an error occurred while advancing the preview
What's up with that? What am I missing?early-musician-41645
10/24/2018, 10:47 PM$ pulumi stack init vnext-poc
error: could not create stack: error determining initial tags: open /home/tsi.lan: permission denied
early-musician-41645
10/24/2018, 10:51 PMerror: no resource plugin 'aws' found in the workspace or on your $PATH
incalculable-sundown-82514
10/24/2018, 11:41 PMearly-musician-41645
10/25/2018, 4:45 PMearly-musician-41645
10/25/2018, 4:46 PMincalculable-sundown-82514
10/25/2018, 4:47 PMincalculable-sundown-82514
10/25/2018, 4:48 PMincalculable-sundown-82514
10/25/2018, 4:49 PMearly-musician-41645
10/25/2018, 4:51 PMbucketObject = s3.BucketObject("some/foo/path/my-bucket-object", { bucket: bucket.bucket, content: "hello foo world" })
bucketObject = s3.BucketObject("some/foo/path/my-bucket-object", { bucket: bucket.bucket, content: "hello foo world" })
NameError: name 'content' is not defined
error: an unhandled error occurred: Program exited with non-zero exit code: 1
I'm just looking for the actual arguments that go in the constructor.
The doc you posted says this:
new BucketObject(name: string, args: BucketObjectArgs, opts?: pulumi.CustomResourceOptions)
Create a BucketObject resource with the given unique name, arguments, and options.
name The unique name of the resource.
args The arguments to use to populate this resource's properties.
opts A bag of options that control this resource's behavior.
But I'm not sure what the args or opts are supposed to beearly-musician-41645
10/25/2018, 4:52 PMBucketObjectArgs
says it has this field:
property content
content?: pulumi.Input<string>;
early-musician-41645
10/25/2018, 4:52 PMincalculable-sundown-82514
10/25/2018, 4:54 PMec2.Instance
)incalculable-sundown-82514
10/25/2018, 4:55 PMearly-musician-41645
10/25/2018, 4:58 PMbucketObject = s3.BucketObject("some/foo/path/my-bucket-object",
bucket=bucket.bucket,
content="hello foo world")
early-musician-41645
10/25/2018, 5:01 PMmodules
and environments
, and then I put everything environment-specific into a terraform.tfvars
, and I write lots of modules such as eks-cluster
, eks-workers
, auth-map
, etc.early-musician-41645
10/25/2018, 5:01 PMearly-musician-41645
10/25/2018, 5:01 PMearly-musician-41645
10/25/2018, 5:04 PMincalculable-sundown-82514
10/25/2018, 5:45 PMincalculable-sundown-82514
10/25/2018, 5:46 PMpulumi.ComponentResource
and in the __init__
of that class, you can create other resources. Sort of like this: https://github.com/pulumi/pulumi-aws-infra/blob/0f78af2ecd231e10dcc63f46ca07b8fa972ac6b1/python/pulumi_aws_infra/network.py#L25incalculable-sundown-82514
10/25/2018, 5:47 PMincalculable-sundown-82514
10/25/2018, 5:47 PMincalculable-sundown-82514
10/25/2018, 7:00 PMearly-musician-41645
10/25/2018, 7:03 PMeks_cluster_security_group = ec2.SecurityGroup(environment+"-eks-cluster-sg",
description="EKS cluster communication with worker nodes"
egress=[
{ 'protocol': '-1', 'from_port': 0, 'to_port': 0, 'cidr_blocks': ['0.0.0.0/0'] }
])
File "/home/tsi.lan/eshamay/git/mustang/sdp-mustang-terraform/pulumi/vnext-poc/__main__.py", line 33
egress=[
^
SyntaxError: invalid syntax
early-musician-41645
10/25/2018, 7:13 PMeks.Cluster
?early-musician-41645
10/25/2018, 7:13 PM