millions-furniture-75402
05/27/2020, 2:26 PM// has missing properties error when I try to use it
const alb = pulumi.output(<http://aws.lb|aws.lb>.getLoadBalancer({
// @ts-ignore
arn: stackSandbox.getOutput("albArn")
}));
// declares a new ALB
const alb = new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer("test-default-lb", {
// @ts-ignore
arn: stackSandbox.getOutput("albArn"),
subnets: stackSandbox.getOutput("publicSubnetIds").apply(v => v),
vpc
});
ancient-megabyte-79588
05/27/2020, 2:36 PM<http://awsx.lb|awsx.lb>.ApplicationLoadBalancer.get()
millions-furniture-75402
05/27/2020, 2:40 PMTS2339: Property 'get' does not exist on type 'typeof ApplicationLoadBalancer'.
ancient-megabyte-79588
05/27/2020, 2:42 PM// Get reference to pre-existing Azure ResourceGroup
// get the Azure Resource Group
var resouceGroupId:pulumi.Output<string> = pulumi.interpolate `/subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}`;
const resourceGroup = azure.core.ResourceGroup.get(resourceGroupName, resouceGroupId);
This is my code for getting an existing Resource Group in Azurebillowy-army-68599
millions-furniture-75402
05/27/2020, 2:43 PMconst alb = new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer("test-default-lb", {
// @ts-ignore
arn: stackSandbox.getOutput("albArn"),
subnets: stackSandbox.getOutput("publicSubnetIds").apply(v => v),
vpc
}, { import: stackSandbox.getOutput("albArn") });
ancient-megabyte-79588
05/27/2020, 2:48 PMoptions
object null or {}
billowy-army-68599
millions-furniture-75402
05/27/2020, 2:50 PMancient-megabyte-79588
05/27/2020, 2:53 PMbillowy-army-68599
ancient-megabyte-79588
05/27/2020, 2:53 PM.get()
it in the second stack. the import
directive will bring that resource into the second stack and start to manage it.millions-furniture-75402
05/27/2020, 2:56 PMancient-megabyte-79588
05/27/2020, 2:57 PMmillions-furniture-75402
05/27/2020, 2:58 PMancient-megabyte-79588
05/27/2020, 2:58 PM.get()
method on the AWS SDK. 😞billowy-army-68599
millions-furniture-75402
05/27/2020, 3:06 PMconst appTargetGroup = new <http://awsx.lb|awsx.lb>.ApplicationTargetGroup(`${appName}-tg`, {
loadBalancer: alb,
...
const appListenerRule = new <http://awsx.lb|awsx.lb>.ListenerRule(`${appName}-lr`, httpsListener, {
actions: [{
targetGroupArn: appTargetGroup.targetGroup.arn,
type: "forward",
}],
conditions: [{
hostHeader: {
values: [`${appName}.*`],
},
}],
priority: 1,
});
const lbSecurityGroup = new awsx.ec2.SecurityGroup(`${appName}-default-http-and-https`, {
vpc
}, {
// @ts-ignore
import: stackSandbox.getOutput("lbSecurityGroupArn")
});
const alb = new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer("test-default-lb", {
external: true,
securityGroups: [lbSecurityGroup],
// @ts-ignore
subnets: stackSandbox.getOutput("publicSubnetIds").apply(v => v),
vpc,
}, {
// @ts-ignore
import: stackSandbox.getOutput("albArn").apply(v => v)
});
ancient-megabyte-79588
05/27/2020, 4:48 PMmillions-furniture-75402
05/27/2020, 5:02 PMfamous-garage-15683
07/18/2020, 12:53 AMmillions-furniture-75402
07/20/2020, 12:48 PMfamous-garage-15683
07/20/2020, 8:37 PM