stocky-spoon-28903
04/02/2019, 2:43 AMstocky-spoon-28903
04/02/2019, 2:43 AMimport * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// Create an AWS resource (S3 Bucket)
const bucket = new aws.s3.Bucket("my-bucket");
const taskRolePolicy = new aws.iam.Policy('ecs-XXXXXX-task', {
policy: pulumi.output({
Version: "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
bucket.arn,
]
}
]
}).apply(JSON.stringify)
});
// Export the name of the bucket
export const bucketName = bucket.id;
incalculable-diamond-5088
04/02/2019, 10:07 AMcold-coat-35200
04/02/2019, 12:44 PM➜ pulumi (master) yarn list --pattern "@pulumi"
yarn list v1.15.2
├─ @pulumi/aws@0.17.1
├─ @pulumi/kubernetes@0.21.1
├─ @pulumi/pulumi@0.17.2
└─ @pulumi/random@0.5.1
➜ pulumi (master) pulumi version
v0.17.4
➜ pulumi (master) pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 0.18.0 158 MB n/a 11 minutes ago
aws resource 0.17.1 157 MB n/a 1 week ago
kubernetes resource 0.22.0 45 MB n/a 11 minutes ago
kubernetes resource 0.21.1 45 MB n/a 1 week ago
random resource 0.5.1 28 MB n/a 1 week ago
when trying to update one of our stack, without any modification in the code, the preview dies with: error: aws:elasticloadbalancingv2/listener:Listener resource 'dlv-dev-lbg-rtmp-listener' has a problem: default_action: should be a list
I found this comment: https://github.com/pulumi/pulumi-aws/issues/418#issuecomment-455917061
Based on that it was an issue in the past and it was solved, but looks like it's still exist somehow.
I updated our stack to versions:
➜ pulumi (master) yarn list --pattern "@pulumi"
yarn list v1.15.2
├─ @pulumi/aws@0.18.0
├─ @pulumi/kubernetes@0.22.0
├─ @pulumi/pulumi@0.17.4
└─ @pulumi/random@0.5.1
The "default_action" issue is now gone, but still, without any change in the code pulumi want to recreate a lot of our resources, including the eks cluster, which has a lot of dependent resourceearly-family-43281
04/02/2019, 3:01 PMearly-family-43281
04/02/2019, 3:02 PMearly-family-43281
04/02/2019, 3:02 PMearly-family-43281
04/02/2019, 3:02 PMearly-family-43281
04/02/2019, 3:03 PMearly-family-43281
04/02/2019, 3:04 PMearly-family-43281
04/02/2019, 3:05 PMearly-family-43281
04/02/2019, 3:05 PMbillowy-laptop-45963
04/02/2019, 3:52 PMbillowy-garage-68819
04/02/2019, 3:56 PMbillowy-laptop-45963
04/02/2019, 4:10 PMbig-potato-91793
04/02/2019, 5:11 PMstocky-spoon-28903
04/02/2019, 5:18 PMdamp-book-35965
04/02/2019, 10:11 PMDiagnostics:
pulumi:pulumi:Stack (xxx):
error: update failed
kubernetes:core:Service (kube-system/prometheus-operator-prometheus):
error: Plan apply failed: 2 errors occurred:
* Resource operation was cancelled for 'prometheus-operator-prometheus'
* Service was not allocated an IP address; does your cloud provider support this?
What's really happening ? There are enough IPs in the VPC to provisioncool-egg-852
04/02/2019, 10:19 PMfaint-vegetable-61837
04/03/2019, 1:55 PMabundant-monitor-15855
04/03/2019, 3:05 PMimportant-leather-28796
04/03/2019, 5:48 PMerror: gcp:container/cluster:Cluster resource 'production' has a problem: : invalid or unknown key: node_locations
error: gcp:container/cluster:Cluster resource 'production' has a problem: : invalid or unknown key: location
aloof-spoon-46068
04/03/2019, 6:36 PMaz ad sp create-for-rbac"
? I tried following the example from: https://pulumi.io/reference/pkg/nodejs/@pulumi/azure/ad/#example-usage-1 but I’m not able to pull out a Tenant ID. I also see the warnings about deprecated API, but the links just take me to terraform docs and I don’t see how to use the azuread
provider from within pulumi. Basically I want to create a SP then grab all the AAD stuff to use.cool-egg-852
04/04/2019, 12:08 AMmillions-camera-36633
04/04/2019, 4:20 AMpulumi.output
, then export it as a stack output, it doesn't seem to appear in the stack outputs, where as outputs that are a side effects of creating a resource doflaky-continent-74538
04/04/2019, 5:52 AMazure.search.Service
and an azure.appservice.AppService
. I want to create my app service such that its appSettings
has my search service's Query Key. I can get this Query Key one of two ways:
1. Through an API: https://docs.microsoft.com/en-us/rest/api/searchmanagement/querykeys/listbysearchservice
2. Using the CLI: az search query-key list -g <my-resource-group> --service-name <my-service>
How should I integrate one of these into a Pulumi script? Thanks! 🙂important-leather-28796
04/04/2019, 1:48 PMvertical pod autoscaling
sooner than later please add your 👍 to the terraform issue https://github.com/terraform-providers/terraform-provider-google/issues/3200plain-businessperson-30883
04/04/2019, 4:02 PMbetter-rainbow-14549
04/04/2019, 6:48 PMimportant-leather-28796
04/04/2019, 8:17 PMplugin 'kubernetes' found in the workspace or on your $PATH
important-leather-28796
04/04/2019, 8:17 PMplugin 'kubernetes' found in the workspace or on your $PATH
colossal-beach-47527
04/04/2019, 8:20 PMnpm
?important-leather-28796
04/04/2019, 8:21 PMyarn list @pulumi/gcp @pulumi/pulumi
to ensure they were installed with a pulumi plugin ls
- pulumi/preview:
stack: alienfast/production
working_directory: ~/project/cloud/app
pulumi/login
colossal-beach-47527
04/04/2019, 8:22 PMyarn install
to get all of the prerequisites?important-leather-28796
04/04/2019, 8:23 PMcolossal-beach-47527
04/04/2019, 8:24 PMpulumi/preview
orb just shells out to pulumi preview ...
So it is probably something with how/where the plugins are being loaded/located.important-leather-28796
04/04/2019, 8:25 PMworking_directory: ~/project/cloud/app
working_directory: cloud/app
colossal-beach-47527
04/04/2019, 8:32 PMpulumi plugin ls
it should appear in the output.important-leather-28796
04/04/2019, 8:39 PM#!/bin/bash -eo pipefail
yarn list --pattern @pulumi && pulumi plugin ls
yarn list v1.12.3
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
├─ @pulumi/gcp@0.18.2
├─ @pulumi/kubernetes@0.22.0
├─ @pulumi/pulumi@0.17.4
└─ @pulumi/random@0.5.1
Done in 1.14s.
NAME KIND VERSION SIZE INSTALLED LAST USED
TOTAL plugin cache size: 0 B
prepare
jobpersist_to_workspace
and attach_workspace
persist_to_workspace
, I just need to know which path.colossal-beach-47527
04/04/2019, 8:44 PMbitter-oil-46081
04/04/2019, 8:44 PM~/.pulumi/plugins
There is a sub-folder for each plugin.important-leather-28796
04/04/2019, 8:47 PM* In step 8 (persist_to_workspace): Path ~/.pulumi/plugins is not relative to the workspace root (.)
PULUMI_HOME
or something like that pre-yarn?#!/bin/bash -eo pipefail
ls -la /home/circleci/.pulumi/plugins || true
ls: cannot access '/home/circleci/.pulumi/plugins': No such file or directory
#!/bin/bash -eo pipefail
ls -la /home/circleci/.pulumi || true
total 20
drwxr-xr-x 3 circleci circleci 4096 Apr 4 21:17 .
drwxr-xr-x 11 circleci circleci 4096 Apr 4 21:17 ..
-rw------- 1 circleci circleci 59 Apr 4 21:17 .cachedVersionInfo
drwx------ 2 circleci circleci 4096 Apr 4 21:17 bin
-rw------- 1 circleci circleci 149 Apr 4 21:17 credentials.json
#!/bin/bash -eo pipefail
echo $HOME
/home/circleci
pulumi login
Logging in using access token from PULUMI_ACCESS_TOKEN
Logged into <http://pulumi.com|pulumi.com> as rosskevin (<https://app.pulumi.com/rosskevin>)
circleci@122be95f3249:~/project$ ls -la ~/.pulumi/
total 20
drwxr-xr-x 3 circleci circleci 4096 Apr 4 22:00 .
drwxr-xr-x 11 circleci circleci 4096 Apr 4 21:55 ..
-rw------- 1 circleci circleci 59 Apr 4 22:00 .cachedVersionInfo
drwx------ 2 circleci circleci 4096 Apr 4 21:55 bin
-rw------- 1 circleci circleci 149 Apr 4 22:00 credentials.json
circleci@122be95f3249:~/project$ yarn list --pattern @pulumi
yarn list v1.12.3
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
├─ @pulumi/gcp@0.18.2
├─ @pulumi/kubernetes@0.22.0
├─ @pulumi/pulumi@0.17.4
└─ @pulumi/random@0.5.1
Done in 1.11s.
node_modules
and yarned, still no pluginsbitter-oil-46081
04/04/2019, 10:03 PMare they installed on first use?Right now, no. They are installed via a npm post install script which calls
pulumi plugin install
Can you run pulumi plugin install resource gcp 0.18.2
and let me know happens?important-leather-28796
04/04/2019, 10:04 PMpulumi
is not available from the orb until pulumi/login
bitter-oil-46081
04/04/2019, 10:05 PMpulumi plugin install
from the root of your project and it will try to install all plugins you need.important-leather-28796
04/04/2019, 10:05 PMpulumi/login
before yarn
confirmed to have plugins nowcolossal-beach-47527
04/04/2019, 10:18 PMimportant-leather-28796
04/04/2019, 10:19 PMpulumi preview --stack alienfast/production --cwd ~/project/cloud/app
Previewing update (alienfast/production):
@ Previewing update...| /
@ Previewing update...| pulumi:pulumi:Stack advisorintake-app-production running
@ Previewing update...| / - \ pulumi:pulumi:Stack advisorintake-app-production error: Running program '/home/circleci/project/cloud/app' failed with an unhandled exception:
pulumi:pulumi:Stack advisorintake-app-production error: Error: Cannot find module '@alienfast/pulumi'
- pulumi/preview:
stack: alienfast/production
working_directory: ~/project/cloud/app
~/p/a/c/app ❯❯❯ pulumi preview --stack alienfast/production
Previewing update (alienfast/production):
Type Name Plan Info
pulumi:pulumi:Stack advisorintake-app-production 4 messages
> ├─ pulumi:pulumi:StackReference alienfast/advisorintake-infrastructure/production read
> └─ pulumi:pulumi:StackReference alienfast/advisorintake-identity/production read
curl -L <https://get.pulumi.com/> | bash -s
under the circleci user account yields
+ Extracting to /home/circleci/.pulumi/bin
mktemp: failed to create directory via template 'pulumi.XXXXXXXXXX': Permission denied
RUN curl -L <https://get.pulumi.com/> | bash -s