worried-engineer-33884
06/27/2019, 7:20 PMconst otherProvider = new aws.Provider("otherProvider")
do i have to do anything special to run mocha unit tests on things that use that provider?worried-engineer-33884
06/27/2019, 10:10 PM@internal
. Is there another way?dazzling-scientist-80826
06/27/2019, 11:02 PMaws.cloudwatch.LogGroup.get(name, logGroupName)
where logGroupName
is a computed value like /aws/lambda/${lambda.name}
- this works, but if there were no log messages written by the lambda yet (ie on an initial deploy) subsequent resource creations that reference the log group fail with The specified log group does not exist
- any recommendations on how to solve this chicken and egg problem?glamorous-thailand-23651
06/27/2019, 11:18 PMcrooked-jordan-34725
06/28/2019, 3:42 AMcrooked-jordan-34725
06/28/2019, 3:49 AMcrooked-jordan-34725
06/28/2019, 3:49 AMmodern-bear-85657
06/28/2019, 1:52 PMbusy-umbrella-36067
06/28/2019, 3:27 PMerror: The role "arn:aws:iam::xxx:role/xxx" cannot be assumed.
Running pulumi update
a second time, after the role has been fully created successfully creates a useable provider.
import * as aws from "@pulumi/aws";
const role = new aws.iam.Role("testrole", {
assumeRolePolicy: aws.getCallerIdentity().then(id => {
return {
Version: "2012-10-17",
Statement: [
{
Effect: "Allow",
Principal: {
AWS: `arn:aws:iam::${id.accountId}:root`
},
Action: "sts:AssumeRole"
}
]
};
})
});
const rolePolicy = new aws.iam.Policy("test", {
description: "Full S3 Admin",
policy: {
Version: "2012-10-17",
Statement: [
{
Effect: "Allow",
Action: "s3:*",
Resource: "*"
}
]
}
});
const rolePolicyAttachment = new aws.iam.RolePolicyAttachment("test", {
policyArn: rolePolicy.arn.apply(arn => arn),
role: role
});
const roleProvider = new aws.Provider(
"test",
{
assumeRole: {
roleArn: role.arn
}
},
{ dependsOn: rolePolicyAttachment }
);
// try to make an s3 bucket using role provider
// this will fail once and then work
const s3Bucket = new aws.s3.Bucket(
"test",
{},
{ provider: roleProvider, dependsOn: roleProvider }
);
millions-judge-24978
06/28/2019, 4:23 PM404
when trying to install the resource plugin.swift-painter-31084
06/28/2019, 6:08 PMpulumi up
https://github.com/pulumi/examples/tree/master/aws-ts-static-websitemillions-judge-24978
06/28/2019, 6:27 PMboundless-monkey-50243
06/28/2019, 8:30 PMArray<pulumi.Output<T>>
. Has anyone got a sneaky way (probably a reducer or something?) to turn that into a pulumi.Output<Array<T>>
?millions-judge-24978
06/28/2019, 9:25 PMstable/metrics-server
) into two clusters in a single stack.
I tried using the new resourcePrefix
option from https://github.com/pulumi/pulumi-kubernetes/pull/599. However, I believe this only affects the releaseName
, indirectly affecting the URN. Some helm chart resources, i.e. APIService
, do not use the releaseName
as they must have very specific `metadata.name`s, like <http://v1beta1.metrics.k8s.io|v1beta1.metrics.k8s.io>
. As a result, this ends up with a collision still occurring.damp-pillow-67781
06/28/2019, 11:07 PMServicemonitor
to my EKS cluster into a specific namespace, but however I tried, it still installs into default namespace. Any idea on how to deploy not in default namespace? Here is the code I have: export const postgresServiceMonitorCRD = new k8s.apiextensions.CustomResource("postgres-servicemonitor", {
apiVersion: "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>",
kind: "ServiceMonitor",
namespace: namespaceName,
transformations: [addMonitoringNamespace],
metadata: {
labels: {
app: "prometheus-postgres-exporter-servicemonitor",
release: "prometheus-operator",
},
name: "postgres-servicemonitor",
},
spec: {
namespaceSelector: {
any: true,
},
endpoints: [{
port: "http",
interval: "30s",
},],
selector: {
matchLabels: {
app: "prometheus-postgres-exporter",
release: "postgres-exporter",
},
},
},
});
incalculable-diamond-5088
06/29/2019, 12:35 PMkiam
to allow assuming roles for pods in this namespacethankful-lamp-48382
06/29/2019, 1:30 PMconst dnsRecord = new cloudflare.Record('my-dns-record', {
name: 'my-dns-record-game-server',
domain: zone,
value: droplet.ipv4Address,
type: 'A',
ttl: 300
}, {dependsOn: droplet})
thankful-lamp-48382
06/29/2019, 1:30 PMerror: Plan apply failed: Error finding zone "<http://whack.io|whack.io>": ListZonesContext command failed: error from makeRequest: HTTP status 400: content "{\"success\":false,\"errors\":[{\"code\":6003,\"message\":\"Invalid request headers\",\"error_chain\":[{\"code\":6103,\"message\":\"Invalid format for X-Auth-Key header\"}]}],\"messages\":[],\"result\":null}"
thankful-lamp-48382
06/29/2019, 1:31 PMthankful-lamp-48382
06/29/2019, 1:32 PMthankful-lamp-48382
06/29/2019, 1:45 PMboundless-monkey-50243
07/01/2019, 3:48 AMs3:x-amz-acl
to bucket-owner-full-control
?crooked-jordan-34725
07/01/2019, 9:09 AM.apply
on resources to create a policy that will need their ARNs, but apparently that’s not allowedbillions-lock-80282
07/01/2019, 12:56 PMquaint-queen-45003
07/01/2019, 5:44 PMgetObject
and JSON encoded strings. The error is Property 'getObject' does not exist on type 'string'.ts(2339)
. Any suggestions on this? I'll leave my code sample in a threadcrooked-jordan-34725
07/02/2019, 6:31 AMcmd/pulumi-tfgen-xyz
command blows up with:
/Users/txus/go/pkg/mod/github.com/pulumi/pulumi-terraform@v0.18.4-0.20190622203420-512f93e9d8c3/pkg/tfbridge/provider.go:189:5: cannot use (*Provider)(nil) (type *Provider) as type pulumirpc.ResourceProviderServer in assignment:
*Provider does not implement pulumirpc.ResourceProviderServer (wrong type for Configure method)
have Configure("context".Context, *pulumirpc.ConfigureRequest) (*empty.Empty, error)
want Configure("context".Context, *pulumirpc.ConfigureRequest) (*pulumirpc.ConfigureResponse, error)
/Users/txus/go/pkg/mod/github.com/pulumi/pulumi-terraform@v0.18.4-0.20190622203420-512f93e9d8c3/pkg/tfbridge/serve.go:30:21: cannot use NewProvider("context".TODO(), host, module, version, info.P, info) (type *Provider) as type pulumirpc.ResourceProviderServer in return argument:
*Provider does not implement pulumirpc.ResourceProviderServer (wrong type for Configure method)
have Configure("context".Context, *pulumirpc.ConfigureRequest) (*empty.Empty, error)
want Configure("context".Context, *pulumirpc.ConfigureRequest) (*pulumirpc.ConfigureResponse, error)
crooked-jordan-34725
07/02/2019, 6:31 AMcrooked-jordan-34725
07/02/2019, 6:46 AMstocky-spoon-28903
07/02/2019, 7:19 AMstocky-spoon-28903
07/02/2019, 7:19 AM