gorgeous-animal-95046
03/02/2020, 6:18 PMpulumi.Output
? I'm trying to unit test a function that accepts this as a function param but I can't grok out how to do this.broad-helmet-79436
03/03/2020, 8:26 AMOutput
and OutputInstance
in the source code. Which one should I use in my own code? Does it matter?handsome-cat-98152
03/03/2020, 10:37 AMCRD
s, how do I create an equvalent Pulumi Class for their yaml
config?crooked-knife-92853
03/03/2020, 5:20 PMimport
syntax as I have for other resources.handsome-state-26704
03/04/2020, 2:46 AMcrooked-knife-92853
03/04/2020, 5:16 PM_aws_._eks_._Cluster_
and now I want to create a new node group using the createNodeGroup()
from '@pulumi/eks/nodegroup'
(bc there’s a lot of really good stuff in there I don’t want to have to rewrite). When I try to pass my cluster in I get the following error:
Type 'Cluster' is not assignable to type 'Cluster | CoreData'.
Type 'Cluster' is missing the following properties from type 'Cluster': kubeconfig, provider, clusterSecurityGroup, instanceRoles, and 9 more.ts(2322)
nodegroup.d.ts(164, 5): The expected type comes from property 'cluster' which is declared here on type 'NodeGroupOptions'
And at this point I’m not really sure how to proceed 😞 Is there any way to use that function on an eks cluster I imported into my stack? Thanks in advance!prehistoric-account-60014
03/05/2020, 6:04 AMpolite-motherboard-78438
03/07/2020, 5:15 PMbillions-scientist-31826
03/09/2020, 8:00 PMOutput<T>
to a string?proud-eve-8632
03/11/2020, 9:20 PMerror: Error serializing '() => provider': index.js(19,37)
'() => provider': index.js(19,37): captured
variable 'provider' which indirectly referenced
function 'create': Labels.ts(28,10): which captured
module './Labels.ts' which indirectly referenced
function 'bound register': which could not be serialized because
it was a native code function.
Function code:
function () { [native code] }
Capturing modules can sometimes cause problems.
Consider using import('./Labels.ts') or require('./Labels.ts') inside function 'create': Labels.ts(28,10)
quiet-morning-24895
03/12/2020, 4:25 AMaws.Region
parameter, but aws.RegionResult.name
doesn't have the right type. Is this a bug in the typings?
The API:
export declare function getRoleProvider(name: string, region?: aws.Region, profile?: string, parent?: pulumi.ComponentResource): CreationRoleProvider;
getRegion:
export declare function getRegion(args?: GetRegionArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionResult> & GetRegionResult;
export interface GetRegionResult {
/**
* The region's description in this format: "Location (Region name)".
*/
readonly description: string;
/**
* The EC2 endpoint for the selected region.
*/
readonly endpoint: string;
/**
* The name of the selected region.
*/
readonly name: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}
broad-dog-22463
03/12/2020, 4:26 AMbroad-dog-22463
03/12/2020, 4:26 AMquiet-morning-24895
03/12/2020, 4:26 AMbroad-dog-22463
03/12/2020, 4:27 AMbroad-dog-22463
03/12/2020, 4:27 AMbroad-dog-22463
03/12/2020, 4:28 AMquiet-morning-24895
03/12/2020, 4:33 AMbroad-dog-22463
03/12/2020, 4:33 AMbroad-dog-22463
03/12/2020, 4:33 AMdelightful-truck-1268
03/16/2020, 6:49 PMOutput<string> is not assigned to type 'string'
delightful-truck-1268
03/16/2020, 6:50 PMgetOutput
function as described in https://www.pulumi.com/docs/intro/concepts/programming-model/#stack-referencesgreat-vr-65723
03/17/2020, 4:09 AMaws.getCallerIdentity().accountId
I'm trying to find information on mock AWS providers for Pulumi. I found this PR, but zero additional documentation for how to use it. I also can't find much information about tests beyond this blog post that is very cursory.
Anyway, does anyone have any information about how to mock the AWS provider? Spefically the getCallerIdentity()
function?limited-rainbow-51650
03/18/2020, 5:23 PMaliases
. I need to debug why my preview
still says a resource will be deleted and created. Is there any way to see the values of the CustomResourceOptions
in the output?bitter-toddler-22112
03/19/2020, 3:23 PMbrainy-garden-89849
03/23/2020, 8:37 PMsalmon-account-74572
03/23/2020, 10:36 PMpulumi config set ...
and then access them in my TypeScript code. In the past, when only dealing with AWS-specific details, I'd use this code:
const config = new pulumi.Config("aws");
const configRegion = config.require("region");
Now, though, I'm trying access both AWS-specific details and non-AWS specific information. I would've thought this would work, but it doesn't:
const config = new pulumi.Config();
const configRegion = config.require("aws:region");
Instead, I keep getting prompted to set configuration value <stack-name>:aws:region
. I've set the region using pulumi config set aws:region us-west-2
and pulumi config set <stack-name>:aws:region us-west-2
, both to no avail. (The latter option doesn't work, even though that's what pulumi preview
references as an error.)
What am I missing?faint-oil-7535
03/24/2020, 1:31 AMacceptable-army-69872
03/24/2020, 12:15 PM--target urn:pulumi:prod1::api::awsx:x:ec2:Vpc\$aws:ec2/vpc:Vpc::some-vpc --target-dependents
the dependency graph only spits out the VPC, and none of the subnets / nat gateways / whatever else in the VPC. Then it fails on creation, with urn:pulumi:prod1::api::awsx:x:ec2:Vpc\$aws:ec2/vpc:Vpc::some-vpc could not be found in the stack.
acceptable-army-69872
03/24/2020, 12:15 PM