worried-plastic-45846
09/17/2020, 4:00 PMpulumi up
, I sometimes run into some issues caused by an out of sync stack. pulumi refresh
fixes these issues.
Is there any reason why systematically running pulumi refresh
before pulumi up
would be a bad idea?
I have a CI/CD pipeline running pulumi, and am considering replacing pulumi up
with pulumi up -r
, but I'm afraid of unforeseen consequences.some-chef-79525
09/17/2020, 4:25 PMbitter-application-91815
09/17/2020, 4:36 PMworried-umbrella-80893
09/17/2020, 5:53 PMclever-plumber-29709
09/17/2020, 8:39 PMbrief-animal-10307
09/18/2020, 12:09 AMcurved-waitress-45592
09/18/2020, 1:08 AMnarrow-jackal-57645
09/18/2020, 2:26 AMstring
instead of Output<string>
. It makes thing quite inconvenient and hard in certain cases to reference the output of other resources. I still don't know what's the best way to cast an object of Output<string>
to string
so I ending up hardcoding the value. Any guidance is greatly appreciated.damp-table-85095
09/18/2020, 3:30 AMbillowy-kangaroo-51688
09/18/2020, 3:45 AMaws.apigatewayv2.DomainName
across AWS accounts within an organization?? I mean I could have each service setup its own domain, just curious, especially as I thought I could have <http://api.domain.com|api.domain.com>
for everything and than deploy services via aws.apigatewayv2.ApiMapping
π€narrow-jackal-57645
09/18/2020, 5:48 AMType Name Status Info
pulumi:pulumi:Stack clui-infrastructure-dev **failed** 1 error
ββ awsx:x:ec2:Vpc clui-dev-vpc
ββ awsx:x:ec2:SecurityGroup clui-dev-fargate-sg
+- ββ aws:ec2:SecurityGroupRule clui-dev-farget-sg-egress-containers-to-internet **replacing failed** [diff: ~toPort]; 1 error
Diagnostics:
aws:ec2:SecurityGroupRule (clui-dev-farget-sg-egress-containers-to-internet):
error: [WARN] A duplicate Security Group rule was found on (sg-09f699aa68e2866bd). This may be
a side effect of a now-fixed Terraform issue causing two security groups with
identical attributes but different source_security_group_ids to overwrite each
other in the state. See <https://github.com/hashicorp/terraform/pull/2376> for more
information and instructions for recovery.
The step to re-produce is very simple:
import * as awsx from '@pulumi/awsx';
import * as aws from '@pulumi/aws';
const albSg = new awsx.ec2.SecurityGroup(`my-alb-sg`, {
ingress: [],
egress: []
};
new aws.ec2.SecurityGroupRule(`sg-ingress-alb-to-containers`, {
type: 'ingress',
description: 'Allow all traffics from ALB to ECS containers',
protocol: 'all',
fromPort: 0,
toPort: 65535,
securityGroupId: albSg.id,
});
pulumi up
then updating the SG rule:
toPort: 65534,
then pulumi up
again, this time I get the error when pulumi is trying to replace the SG Rule resource.wet-exabyte-21510
09/18/2020, 10:32 AMelegant-island-39916
09/18/2020, 12:59 PMkubeconfig
or provider
property I can access on an EKS Cluster (pulumi_aws.eks.cluster
) object in Python? I would like the provider for adding helm charts and deploying services to EKSbitter-application-91815
09/18/2020, 1:01 PMbitter-application-91815
09/18/2020, 1:01 PMkubernetes:<http://rbac.authorization.k8s.io:ClusterRoleBinding|rbac.authorization.k8s.io:ClusterRoleBinding> (axiom-alb-charts-staging-f-aws-alb-ingress-controller):
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://B28AFB458A821E98D3607A3F0B60F0F4.gr7.eu-west-1.eks.amazonaws.com/openapi/v2?timeout=32s>": dial tcp: lookup <http://B28AFB458A821E98D3607A3F0B60F0F4.gr7.eu-west-1.eks.amazonaws.com|B28AFB458A821E98D3607A3F0B60F0F4.gr7.eu-west-1.eks.amazonaws.com>: no such host
bitter-application-91815
09/18/2020, 1:01 PMbitter-application-91815
09/18/2020, 1:07 PMbitter-application-91815
09/18/2020, 1:11 PMbitter-application-91815
09/18/2020, 1:16 PMbitter-application-91815
09/18/2020, 1:17 PMbitter-application-91815
09/18/2020, 1:18 PMbitter-application-91815
09/18/2020, 1:18 PMbitter-application-91815
09/18/2020, 1:18 PMTags: pulumi.StringMap{
"Name": pulumi.String(fmt.Sprintf("axiom-cloud-private-subnet-%s-%s", w.targetEnv, os.Getenv(AuroraTertiary))),
fmt.Sprintf("<http://kubernetes.io/cluster/axiom-%s|kubernetes.io/cluster/axiom-%s>", w.targetEnv): pulumi.String("shared"),
"<http://kubernetes.io/role/internal-elb|kubernetes.io/role/internal-elb>": pulumi.String("1"),
},
bitter-application-91815
09/18/2020, 1:18 PMbitter-application-91815
09/18/2020, 1:18 PMTags: pulumi.StringMap{
"Name": pulumi.String(fmt.Sprintf("axiom-cloud-public-subnet-%s-%s", w.targetEnv, os.Getenv(AuroraSecondary))),
fmt.Sprintf("<http://kubernetes.io/cluster/axiom-%s|kubernetes.io/cluster/axiom-%s>", w.targetEnv): pulumi.String("shared"),
"<http://kubernetes.io/role/elb|kubernetes.io/role/elb>": pulumi.String("1"),
},
bitter-application-91815
09/18/2020, 1:20 PMdamp-table-85095
09/18/2020, 1:43 PMrapid-oil-61997
09/18/2020, 2:26 PMvar virtualNetwork = new VirtualNetwork("vNet", new VirtualNetworkArgs
{
Location = resourceGroup.Location,
ResourceGroupName = resourceGroup.Name,
Tags = tag,
AddressSpaces = vnetAddressSpace,
Name = "midhun-poc-pulumi-vnet",
Subnets =
{
new VirtualNetworkSubnetArgs
{
Name = "subnet1",
AddressPrefix = "10.198.10.0/29",
SecurityGroup = nsg.Id
},
new VirtualNetworkSubnetArgs
{
Name = "subnet2",
AddressPrefix = "10.198.10.8/29",
SecurityGroup = nsg.Id
}
}
});
when creating network interface as below, how can i refer to the subnet that i created above in this section ?
var networkInterface = new NetworkInterface("nic", new NetworkInterfaceArgs
{
Name = "midhun-poc-pulumi-vm-nic",
Tags = tag,
Location = resourceGroup.Location,
ResourceGroupName = resourceGroup.Name,
IpConfigurations = new NetworkInterfaceIpConfigurationArgs
{
Name = "midhun-poc-pulumi-nic-ip",
SubnetId =
}
});
Any help is appreciated. Thanks in advance.billowy-laptop-45963
09/18/2020, 3:22 PMhallowed-beach-15050
09/18/2020, 4:21 PMhallowed-beach-15050
09/18/2020, 4:21 PM