cold-coat-35200
05/06/2019, 11:48 AMconst vpc = new aws.ec2.Vpc(
vpcName,
{
cidrBlock: cidrBlock,
enableDnsHostnames: true,
enableDnsSupport: true,
tags: Object.assign(
{
Name: vpcName
},
args.resourceTags
)
},
{ parent: this }
)
if I change this to
const vpc = new aws.ec2.Vpc(
vpcName,
{
cidrBlock: cidrBlock,
enableDnsHostnames: true,
enableDnsSupport: true,
tags: {
Name: vpcName
}
},
{ parent: this, ignoreChanges: ['tags'] }
)
and trying to update the stack, I got an error:
aws:ec2:Vpc (dlv-sbx-vpc):
error: aws:ec2/vpc:Vpc resource 'dlv-sbx-vpc' has a problem: tags (kubernetes): '' expected type 'string', got unconvertible type 'map[string]interface {}'
pulumi:pulumi:Stack (dliver-dlv-sbx):
error: Running program '/home/ncsibra/dev/prmrgt-infra/pulumi/dliver' failed with an unhandled exception:
Error: invocation of aws:ec2/getVpc:getVpc returned an error: transport is closing
at monitor.invoke (/home/ncsibra/dev/prmrgt-infra/pulumi/node_modules/@pulumi/pulumi/runtime/invoke.js:74:33)
at Object.onReceiveStatus (/home/ncsibra/dev/prmrgt-infra/pulumi/node_modules/grpc/src/client_interceptors.js:1205:9)
at InterceptingListener._callNext (/home/ncsibra/dev/prmrgt-infra/pulumi/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/home/ncsibra/dev/prmrgt-infra/pulumi/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/home/ncsibra/dev/prmrgt-infra/pulumi/node_modules/grpc/src/client_interceptors.js:845:24)
This resource has a tag, added by EKS, something like <http://kubernetes.io/cluster/dlv-sbx-cluster-eks-197239a|kubernetes.io/cluster/dlv-sbx-cluster-eks-197239a>: shared
, this tag not exist in pulumi code, because vpc created first, then EKS, so unable to add it from pulumi, but after a refresh, pulumi tries to remove that, but that would cause problems with resources handled by kubernetes.
So I tried to add ignoreChanges, but looks like it want to do something with the tags anyway and unable to parse it.tall-librarian-49374
05/06/2019, 2:33 PMmelodic-kilobyte-405
05/06/2019, 2:49 PMmelodic-kilobyte-405
05/06/2019, 2:49 PMgolang
function to GCF
melodic-kilobyte-405
05/06/2019, 2:50 PMTypescript
preferrablybitter-planet-74603
05/06/2019, 4:27 PMbrave-angle-33257
05/06/2019, 8:16 PMDiagnostics:
pulumi:pulumi:Stack (compute-studio-compute-studio-b-stage-eus2):
error: transport is closing
is this the host having networking issues? or could this be pulumi related? not seeing any other obvious signs of networking trouble on the hostfierce-dinner-20116
05/06/2019, 10:06 PMproud-tiger-5743
05/07/2019, 12:22 AMconst ingestFunction = new aws.lambda.CallbackFunction("processor", {
role: lambdaRole,
callback: async event => {
const s3 = new aws.sdk.S3({ apiVersion: "2006-03-01" });
const foo = s3.listBuckets((err, data) => {
return data;
});
console.log(foo);
}
});
That function, when run just dumps a huge AWS response objectproud-tiger-5743
05/07/2019, 12:31 AMconst ingestFunction = new aws.lambda.CallbackFunction("ingestProcessor", {
role: lambdaRole,
callback: async event => {
const AWS = require("aws-sdk");
const s3 = new AWS.S3({ apiVersion: "2006-03-01" });
s3.listBuckets((err, data) => {
console.log(data.Buckets);
});
}
});
It doesn't log anything - I saw this example - https://github.com/pulumi/examples/blob/master/aws-ts-apigateway/index.ts#L24 - and thought you could reference the SDK that way...but maybe I misunderstood that pieceshy-army-45455
05/07/2019, 2:02 AM${v}
). Are there any examples on how to do this? I need to get the pure string value so I can use it in a subsequent child_process.exec call.millions-judge-24978
05/07/2019, 2:41 AMpulumi login gs://...
and running into this error whenever I try to do my first pulumi preview
for the stack:
error: Could not get signed url for stack location: blob (code=Unknown): to use SignedURL, you must call OpenBucket with a valid Options.GoogleAccessID and exactly one of Options.PrivateKey or Options.SignBytes
Anyone gotten the GCP bucket state to work yet?future-morning-96441
05/07/2019, 9:36 AMpulumi up
, but I don't really know where to go from there:
run pulumi up -s dev
Previewing update (dev):
pulumi:pulumi:Stack reventless-examples-dev running
reventless:CommandTopic CustomerCommandTopic
aws:sqs:Queue CustomerCommandTopicQueue
aws:sns:Topic CustomerCommandTopicTopic
pulumi:pulumi:Stack reventless-examples-dev (node:5748) ExperimentalWarning: queueMicrotask() is experimental.
aws:sqs:QueueEventSubscription CustomerAggregateSubscription
aws:sns:TopicSubscription CustomerCommandTopicSubscription
aws:iam:Role CustomerAggregateSubscription
aws:iam:RolePolicyAttachment CustomerAggregateSubscription-7cd09230
aws:iam:RolePolicyAttachment CustomerAggregateSubscription-32be53a2
pulumi:pulumi:Stack reventless-examples-dev Error: failed to register new resource CustomerAggregateSubscription [aws:lambda/function:Function]: 2 UNKNOWN: failed to compute asset hash: asset path 'node_modules/reventless' is a directory; try using an archive
pulumi:pulumi:Stack reventless-examples-dev at Object.registerResource (/home/chris/Projects/reventless-examples/node_modules/reventless/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/runtime/resource.js:114:27)
The setup is as following: The first project (called "reventless") contains some `componentResource`s (pure javascript) and is versioned in a private git repository. Reventless is required by the second project, stated in package.json
(private repo with access token). This seems to work.
Troubles arise, when I use npm link
to develop both projects together. Is there some known issue regarding linked node modules?better-rainbow-14549
05/07/2019, 9:51 AMgray-elephant-37695
05/07/2019, 12:43 PMpulumi refresh
is this a bug?cold-coat-35200
05/07/2019, 2:00 PM++aws:ec2/instance:Instance: (create-replacement)
[id=i-05c0e1f10f4f3799c]
[urn=urn:pulumi:sbx-app::etcd-clusters::Etcd:EtcdCluster$Etcd:EtcdNode$aws:ec2/instance:Instance::etcd3-ec2Node]
~ ebsBlockDevices : [
~ [0]: {
+ __defaults : []
}
~ [1]: {
+ __defaults : []
}
]
+-aws:ec2/instance:Instance: (replace)
[id=i-05c0e1f10f4f3799c]
[urn=urn:pulumi:sbx-app::etcd-clusters::Etcd:EtcdCluster$Etcd:EtcdNode$aws:ec2/instance:Instance::etcd3-ec2Node]
~ ebsBlockDevices : [
~ [0]: {
+ __defaults : []
}
~ [1]: {
+ __defaults : []
}
]
Is this normal?better-rainbow-14549
05/07/2019, 2:47 PMbetter-rainbow-14549
05/07/2019, 2:47 PMbrave-angle-33257
05/07/2019, 3:29 PMOutputs:
+ public_subnet_ids: [
+ [0]: "subnet-00c7ed0ec22cb3ce4"
+ [1]: "subnet-04327ab075a2ae3b3"
]
I’m then trying to pass those into an ALB in another stack:
const vpc = new pulumi.StackReference(`my-vpc/${env}`);
var alb = new aws.applicationloadbalancing.LoadBalancer(alb_name, {
name: alb_name,
subnetMappings: vpc.getOutput("public_subnet_ids"),
enableCrossZoneLoadBalancing: true,
enableHttp2: true
});
and getting this:
Diagnostics:
aws:applicationloadbalancing:LoadBalancer (myapp-alb-stage-alb-main):
error: aws:applicationloadbalancing/loadBalancer:LoadBalancer resource 'myapp-alb-stage-alb-main' has a problem: subnet_mapping.0: expected object, got string
error: aws:applicationloadbalancing/loadBalancer:LoadBalancer resource 'myapp-alb-stage-alb-main' has a problem: subnet_mapping.1: expected object, got string
seems like an Output/String/Promise issue but not sure what I’m doing wrong herebetter-rainbow-14549
05/07/2019, 3:32 PMbetter-rainbow-14549
05/07/2019, 3:33 PMearly-musician-41645
05/07/2019, 4:37 PM$ pulumi up -v9
Previewing update (my-stack):
error: [500] Internal Server Error
orange-tailor-85423
05/07/2019, 9:14 PMproud-tiger-5743
05/08/2019, 12:08 AMawsx
package?proud-tiger-5743
05/08/2019, 12:09 AMREGIONAL
to PRIVATE
) in awsx
?colossal-room-15708
05/08/2019, 12:00 PMsas_token = storage.GetAccountSASResult(
connection_string=storage_account.primary_connection_string,
https_only=False,
resource_types=(
service=False,
container=False,
object=True
),
services=(
blob=True,
queue=False,
table=False,
file=False,
),
start="2019-01-30",
expiry="2028-03-21",
permissions=(
read=True,
write=False,
delete=False,
list=False,
add=False,
create=False,
update=False,
process=False
)
)
icy-dress-83371
05/08/2019, 2:59 PMSP creating 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-05-07T14:22:29","message":{"lang":"en","value":"Insufficient privileges to complete the operation."},"requestId":"6df1d82f-17bb-48da-94d7-8dd03e6a39fa"}}]
chilly-photographer-60932
05/08/2019, 3:26 PMquick-action-34599
05/08/2019, 5:28 PMsalmon-account-74572
05/08/2019, 8:13 PMgetAmi
function. (I freely admit this could be due to my lack of experience with JavaScript.) Here's the code in question:
const bionicAmi = aws.getAmi({
filter: [
{ name: "name", values: "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server*" },
{ name: "virtualization-type", values: "hvm" },
{ name: "root-device-type", values: "ebs" },
],
mostRecent: true,
owners: [ "099720109477" ],
});
Using this set of filters with the AWS CLI works perfectly, but here it returns a completely different AMI. What am I missing?