little-energy-64187
08/09/2019, 2:53 PMCannot determine region: set in this resource, or set provider-level 'region' or 'zone'
cool-egg-852
08/09/2019, 3:13 PMcool-egg-852
08/09/2019, 3:13 PMinfrastructure
cool-egg-852
08/09/2019, 3:15 PMbetter-rainbow-14549
08/09/2019, 3:17 PMbillowy-laptop-45963
08/09/2019, 8:56 PMconst cert = new aws.acm.Certificate("cert", {
domainName : opts.domainName,
subjectAlternativeNames: opts.sans,
validationMethod : "DNS",
});
const certValidations = cert.domainValidationOptions.apply((validationOptions) => {
return validationOptions.map((validationOption, i) => {
const resourceName = `cert_validation${i}`;
return new aws.route53.Record(resourceName, {
records: [validationOption.resourceRecordValue],
ttl: 60,
type: validationOption.resourceRecordType,
zoneId: zone.id,
})
});
});
const certValidation = new aws.acm.CertificateValidation("cert", {
certificateArn: cert.arn,
validationRecordFqdns: certValidations.apply((validations) => {
return validations.map(validation => validation.fqdn);
})
})
cool-hair-35481
08/09/2019, 10:56 PMlimited-rainbow-51650
08/10/2019, 12:51 PMawsx.ec2.Vpc
component resource. The outer box is the awsx.ec2.Vpc
, the nested boxes are (left-to-right) an awsx.ec2.NatGateway
and 2 awsx.ec2.Subnet
components. But the arrows show the dependency over all the individual resources.incalculable-diamond-5088
08/11/2019, 2:00 PMpulumi up
crashes with Error: spawnSync /bin/sh ENOBUFS
when provisioning a big chart (prometheus-operator). Is it a known issue?billowy-television-23506
08/11/2019, 9:20 PMerror: update failed
azuread:index:Application (aks):
error: Plan apply failed: graphrbac.ApplicationsClient#Create: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Unknown" Message="Unknown service error" Details=[{"odata.error":{"code":"Authorization_RequestDenied","date":"2019-08-11T21:19:24","message":{"lang":"en","value":"Insufficient privileges to complete the operation."},"requestId":"4d94460c-0c44-42bc-bb90-aa64422d33fa"}}]
limited-rainbow-51650
08/12/2019, 7:50 AMbest-xylophone-83824
08/12/2019, 9:27 AM.getOutput("...") as pulumi.Output<InterfaceIExpect>
which is probably not very change safe. I am not sure it is possible, I am not fluent with TypeScript, but it would be really nice if Pulumi exported type definitions too and did require
them inside getOutput
, this way result would by typed and any breaking changes in shape of exported object would be caught at plan stagebest-xylophone-83824
08/12/2019, 1:14 PM*Args
argument some fields of which are mandatory and it just happens so that you want to some mandatory fields come from default set and some to be specified in each row of your "table". There is a Partial<T>
type in Typescript, but it doesn't allow you to assemble 2 partials back into T
, because it can't verify at compile time that all required fields are going to be there. Here is how I solved it with PartialExcept<T,E>
, where it makes T's fields all partial, except for those listed in `E`:
type PartialExcept<T,E extends keyof T> = Partial<T> & Pick<T,E>;
bland-camera-22041
08/12/2019, 1:33 PMtry{
NatGw = aws.ec2.getNatGateway({
tags: {
Name: "RCS-CDR"
}
});
} catch(err){
// Craete a New NAT GW here ...
}
The error is not caught but it's thrown in my terminal after pulumi up. I'd like to catch the error and create a new resource if the gatway with the name RCS-CDR
does not existbest-xylophone-83824
08/12/2019, 3:03 PMX-Pulumi-RequestId: 7fe7fe79-c8ae-4467-8cad-e52b111e09f3
better-rainbow-14549
08/12/2019, 3:39 PMbest-xylophone-83824
08/12/2019, 4:14 PMpulumi plugins install
call home? we have CI with no internet access it takes 2.5 minutes, while actual file fetch takes <1 second:
+ date
+ pulumi plugin install resource gcp v0.18.15 --server <http://local-proxy.corp:8000/api.pulumi.com/releases/plugins> --verbose --logtostderr
Mon Aug 12 16:09:38 UTC 2019
[resource plugin gcp-0.18.15] installing
[resource plugin gcp-0.18.15] downloading from <http://local-proxy.corp:8000/api.pulumi.com/releases/plugins>
Downloading plugin: 0 B / 27.96 MiB 0.00%[resource plugin gcp-0.18.15] installing tarball ...
Downloading plugin: 6.12 MiB / 27.96 MiB 21.89%
Downloading plugin: 12.03 MiB / 27.96 MiB 43.03%
Downloading plugin: 21.53 MiB / 27.96 MiB 77.01%
Downloading plugin: 27.96 MiB / 27.96 MiB 100.00% 0s
Moving plugin... done.
+ date
Mon Aug 12 16:12:10 UTC 2019
best-xylophone-83824
08/12/2019, 5:33 PMconst vpc = new gcp.compute.Network("main", {
autoCreateSubnetworks: false
});
+ gcp:compute:Network main creating
+ gcp:compute:Network main creating error: Plan apply failed: project: required field is not set
+ gcp:compute:Network main **creating failed** error: Plan apply failed: project: required field is not set
bitter-dentist-28132
08/12/2019, 7:35 PMOutput<string>
is not an Input<string>
error.thankful-optician-22583
08/12/2019, 9:00 PMCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
bitter-dentist-28132
08/12/2019, 10:35 PMpulumi destroy
, and now i can't bring it up any more, i just get
Error: Unexpected struct type.
any idea what the problem might be? diagnostic messages are unhelpful, it only shows points in pulumi libraries.bitter-dentist-28132
08/12/2019, 10:35 PMbest-xylophone-83824
08/13/2019, 10:00 AM@pulumi-gitlab
and then package to be @pulumi-gitlab/kubernetes
? Downside is that @pulumi
is in the name, which makes it looks somewhat official, on the other hand it have to be there to indicate that it is a package for pulumi as a product 🙂 Any thoughts?fresh-summer-65887
08/13/2019, 12:33 PMpendingOperations
section.
- pulumi refresh
states "No resources will be modified as part of this refresh"
- pulumi preview
wants to delete
then create
with a knock effect for other resources
- pulumi up
hangs trying to complete the delete operation so I have to do a pulimi cancel
Really scratching my head with this one. Any ideas?best-xylophone-83824
08/13/2019, 2:12 PMthankful-optician-22583
08/13/2019, 3:21 PMconst repository = new awsx.ecr.Repository(config.require("ecr-server"));
const image = repository.buildAndPushImage("../../");
const provider = env == "dev" ?
new k8s.Provider("myk8s", {context: kubernetesConfig.get("context")}) :
new k8s.Provider("myk8s", {
kubeconfig: new terraform.state.RemoteStateReference("eks", {
backendType: "s3",
bucket: "XXXXXXXt",
key: "XXXXXXX",
workspace: "XXXXX",
region: "us-east-1"
}).getOutput("kubectl_config")});
My Pulumi preview stage looks like this:
image:
name: pulumi/pulumi:v0.17.10
entrypoint:
- '/usr/bin/env'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
services:
- docker:stable-dind
variables:
DOCKER_HOST: <tcp://localhost:2375/>
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
before_script:
- printenv
- docker info
script:
- cd $working_dir
- echo $DOCKER_HOST
- npm install
- pulumi stack select staging
- pulumi preview
only:
refs:
- branches
- tags
When I run CI pipeline it fails here:
Diagnostics:
awsx:ecr:Repository (<http://XXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com/python-building-block|XXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com/python-building-block>):
error: read tcp 127.0.0.1:33706->127.0.0.1:2376: use of closed network connection
2019/08/13 15:12:14 http2: server: error reading preface from client 127.0.0.1:2376: bogus greeting "Client sent an HTTP requ"
error: Error: 'docker build ../../ -t 7cb86392-container' failed with exit code 1
at /builds/karauctionservices/traderev/python-building-block/python_building_block/pulumi/node_modules/@pulumi/docker.ts:536:15
at Generator.next (<anonymous>)
at fulfilled (/builds/karauctionservices/traderev/python-building-block/python_building_block/pulumi/node_modules/@pulumi/docker/docker.js:17:58)
Permalink: <https://app.pulumi.com/calvin.raveenthran/python-building-block/staging/previews/f7fb9ae7-4f1a-4361-b831-56dd49b0c51e>
Did anyone encounter this error? Client sent a http request to a https server
best-xylophone-83824
08/13/2019, 3:23 PMorange-policeman-59119
08/13/2019, 4:01 PMk8s.scope.resource.get
behave if the resource specified is absent? Is it a fallible operation?
I ask because I would like to deploy an operator in one (shared) place, which defines CRDs.
Then, if and only if the CRDs exist, in other stacks use them to deploy additional components.
Example:
Prometheus Operator chart defines a ServiceMonitor CRD, the service monitor object defines a set of targets to scrape for metrics. Other stacks should deploy ServiceMonitor resources in their namespaces, but only if the CRD exists.bitter-dentist-28132
08/13/2019, 5:05 PMk8s.helm.v2.Chart
, what's the "best" way to grab the ip for the service?bitter-dentist-28132
08/13/2019, 5:12 PMgetResource
function.... i guess that's how 🙂