ambitious-ram-5811
11/02/2019, 2:48 AMtall-librarian-49374
11/02/2019, 7:34 AMambitious-ram-5811
11/02/2019, 7:35 AMambitious-ram-5811
11/02/2019, 7:35 AMwitty-yacht-82771
11/03/2019, 12:12 PMdev
and prod
stacks might deploy an RDS instance, while my test
stack just provisions a small EC2 server running Postgres. The resources deployed in the cloud are totally different, but everything else in the db infrastructure is the same.early-intern-90238
11/03/2019, 10:19 PMmagnificent-petabyte-57952
11/04/2019, 12:56 AMimport
but I am getting error: Plan apply failed: A resource with the ID "/subscriptions/02bc198f-4492-4ee8-adaf-ca7c5dbf4c16/resourceGroups/TDW-NPE-DEV-ARG-PaymentService/providers/Microsoft.Web/sites/TDW-NPE-DEV-APP-PayInSub" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_function_app" for more information.
breezy-butcher-78604
11/04/2019, 3:18 AMawsx.ec2.Vpc.fromExistingIds()
method but canât quite figure out how to supply the right IDs. hereâs what Iâve got so far:
function toArray<T>(v: T | T[]) {
return Array.isArray(v) ? v : [v];
}
const cfg = new pulumi.Config();
// Grab the VPC ID from the existing VPC stack
const vpcStack = new pulumi.StackReference(cfg.require("vpcStack"));
// Now create a VPC object from the id
const vpc = awsx.ec2.Vpc.fromExistingIds("vpc", {
vpcId: vpcStack.getOutput("vpcId"),
publicSubnetIds: toArray(vpcStack.getOutput("publicSubnetIds"))
});
however when running pulumi up, i get the below error message.
Iâm pretty new to typescript so my guess is Iâm not handling the Output<T>
type returned from getOutput()
properly. the output should be an array of subnet IDs, eg:
[
"subnet-abcdefg123456",
"subnet-foobah12345",
"subnet-blahblahblah"
]
however it appears its not making it through properly.wide-dress-96388
11/04/2019, 6:36 AMbulky-businessperson-73745
11/04/2019, 5:18 PMHttpCallbackFunction
is meant to serve as an abstraction over the regular gcp.cloudfunctions.Function
resource. Am I correct in assuming that only the latter allows for customization of the node runtime, available memory, etc.?busy-umbrella-36067
11/04/2019, 6:37 PMcreate/replace
when the resources provider changes?
We use the output from an EKS cluster to build a k8s provider, anytime the CloudFormation stack is modified all of the Helm chart resources are slated for deletion.witty-yacht-82771
11/04/2019, 6:58 PMpulumi logs
? Been digging around in docs but canât find it. Thanks!worried-engineer-33884
11/04/2019, 7:13 PMthankful-optician-22583
11/04/2019, 8:15 PMhigh-morning-18773
11/04/2019, 11:06 PMAttributeError: 'dict' object has no attribute 'resourceRecordName'
Here is the code
useast1 = aws.Provider("useast1", region="us-east-1")
zone = aws.route53.get_zone(
name="<http://testabc.com|testabc.com>",
private_zone=False
)
appcert = aws.acm.Certificate(
"snorkel-dev-cert",
domain_name="<http://testabc.com|testabc.com>",
validation_method="DNS",
__opts__=pulumi.ResourceOptions(provider=useast1)
)
certvalidaton_dns = aws.route53.Record(
"cert-validation-reocord",
name=appcert.domain_validation_options[0].resourceRecordName,
records=appcert.domain_validation_options[0].resourceRecordValue,
type=appcert.domain_validation_options[0].resourceRecordType,
zone_id=zone.zone_id
)
appcert_validation = aws.acm.CertificateValidation(
"app-cert-validation",
certificate_arn=appcert.arn,
validation_record_fqdns=certvalidaton_dns.fqdn
)
most-parrot-35986
11/05/2019, 7:44 AMTypeError: Cannot read property 'kubeconfig' of undefined
. The documentation and code examples suggests I should have access to the kubeconfig and provider from the output. Can I get someone to take a look at see if I just missed something here? Much appreciated.
// Create method in EKS class
async createEksCluster (networking) {
try {
const cluster = new eks.Cluster(this.clusterName, {
endpointPrivateAccess: this.apiPrivateAccess,
endpointPublicAccess: this.apiPublicAccess,
skipDefaultNodeGroup: true,
version: this.version,
vpcId: networking.apply(network => network.vpcId),
subnets: networking.apply(network => network.publicSubnetIds),
nodeAssociatePublicIpAddress: false,
deployDashboard: false,
tags: {
stack: this.stack
}
})
return cluster
} catch (error) {
Error(error)
}
}
// Calling function
const cluster = await eks.createEksCluster(networking)
// Combining output into usable inputs for other modules
const composite = pulumi.all([
cluster.kubeconfig,
cluster.provider,
cluster.core.instanceProfile
]).apply(([
kubeconfig,
provider,
instanceProfile
]) => {
return {
kubeconfig: kubeconfig,
provider: provider,
instanceProfile: instanceProfile
}
})
red-football-97286
11/05/2019, 10:59 AMred-football-97286
11/05/2019, 10:59 AMERROR: Failed building wheel for grpcio
Running setup.py clean for grpcio
Failed to build grpcio
Installing collected packages: protobuf, grpcio, dill, pulumi, semver, attrs, arpeggio, parver, pulumi-aws
Running setup.py install for grpcio ... error
ERROR: Command errored out with exit status 1:
better-actor-92669
11/05/2019, 4:08 PMKubernetes Engine API has not been used in project
from pulumi itself?high-morning-18773
11/05/2019, 6:38 PMbusy-dream-44660
11/05/2019, 6:47 PMpulumi up
I've had a coworker test and he is able to run up
on my stack using files from my branch. Our working dirs are identical. Any idea why mine's hanging? I'll run with verbosity cranked up and add to this as a thread.cool-egg-852
11/05/2019, 9:17 PMbright-apple-15972
11/06/2019, 3:45 PMbrave-angle-33257
11/06/2019, 7:31 PMdeploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack rm --force MyCompany/us-east-2-prod
error: no stack named 'MyCompany/us-east-2-prod' found
deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack rm --force us-east-2-prod
error: no stack named 'us-east-2-prod' found
deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack init MyCompany/us-east-2-prod
error: stack 'us-east-2-prod' already exists
incalculable-engineer-92975
11/06/2019, 8:31 PMincalculable-engineer-92975
11/06/2019, 8:32 PMgentle-garage-52880
11/06/2019, 9:18 PMpulumi up
inside of the code via node?gentle-garage-52880
11/06/2019, 9:18 PMearly-musician-41645
11/06/2019, 10:09 PMnew aws.ec2.Instance
but I don't see how to set the instance name (i.e. the name column that shows up in the AWS ec2 console). It defaults to an empty name.
Any ideas on how to get that set in the Instance
resource?cool-egg-852
11/06/2019, 10:10 PMtag
with Name
as the key.cool-egg-852
11/06/2019, 10:10 PMtag
with Name
as the key.