refined-teacher-35628
08/15/2020, 8:53 AMconst default_vpc = awsx.ec2.Vpc.getDefault();
console.log(default_vpc.internetGateway.id)
kind-address-14510
08/15/2020, 2:24 PM'resourceGroupName' is not defined
for Azure ARM template deployment
File "./__main__.py", line 23, in <module>
resourceGroupName: resource_group.name,
NameError: name 'resourceGroupName' is not defined
error: an unhandled error occurred: Program exited with non-zero exit code: 1
part of code here, not sure where to look for TemplateDeployment
docs , can't see them in API reference
armDeployment = azure.core.TemplateDeployment("test-dep", {
resourceGroupName: resource_group.name,
templateBody: JSON.stringify(content),
parameters: {
"storageAccountType": "Standard_GRS",
},
deploymentMode: "Incremental",
})
little-cartoon-10569
08/16/2020, 11:25 PMpulumi refresh
wants to delete all my NACLs and rules from state, and not update anything. That will leave a pile of good(ish) NACLs and rules in AWS, and Pulumi won't be able to manage them.
How can I recover? I can't see anything in pulumi stack --help
or pulumi state --help
that meets my needs. There's a few options that would help if they were possible: updating the state to match reality, importing reality from AWS into the state, or deleting the NACs and rules from AWS so that reality matches state. Which is the best, and how do I do it?little-cartoon-10569
08/17/2020, 1:10 AM{ import: 'pcx-xyzabc123' }
opt to the ComponentResource constructor instead of to the aws.ec2.VpcPeeringConnection
constructor. This failed because now it's trying to import all resources with the same id (because the opts that I pass to my ComponentResource gets passed to all the nested resources).
So I fixed that. Now when I run preview, it says it'll import my VpcPeeringConnection fine, but it's still trying to import the other resources! Even when I remove the import:
altogether, it's still trying to import! The specific error message is like this:
error: Preview failed: importing pcx-075eac9319f99ebd2: unexpected format of ID ("pcx-xyzabc123"), expected NETWORK_ACL_IDRULE NUMBERPROTOCOL:EGRESS
little-cartoon-10569
08/17/2020, 3:03 AMconst provider = new aws.Provider('x", { region: 'us-east-1', profile: 'assumed-role-in-acct-FOO'});
const identity = aws.getCallerIdentity({ provider: provider});
The returned identity
is the one from the default provider. I expect to see a different arn, accountId and userId in there. Am I doing something wrong?great-optician-69584
08/17/2020, 5:45 AMsquare-rose-64819
08/17/2020, 12:10 PMlittle-wolf-72041
08/17/2020, 1:59 PMgray-lawyer-89054
08/17/2020, 2:13 PMpulumi logs
command. https://www.pulumi.com/blog/unified-logs-with-pulumi-logs/ In this article you mentioned that K8s will be also supported. Do you have some idea when this might happen?brief-spoon-92183
08/17/2020, 2:14 PMrollback
in your docs. Does Pulumi support rollback on failed deploys, and if not, do you plan to support it at some point in the future? Thanks!prehistoric-arm-87050
08/17/2020, 3:51 PMdamp-secretary-81951
08/17/2020, 4:06 PMFargateTaskDefinition
is used twice (instead of EC2TaskDefinition
), same goes for FargateService
, which is used twice instead of EC2Service
.
https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ecs/#task-definitions
https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ecs/#services
Overall the docs have been very helpful. Thanks for updating!busy-iron-87492
08/17/2020, 4:36 PMmillions-dog-5491
08/17/2020, 5:02 PMrefined-teacher-35628
08/17/2020, 5:43 PMrefined-teacher-35628
08/17/2020, 5:43 PMpulumi destroy
refined-teacher-35628
08/17/2020, 5:43 PMrefined-teacher-35628
08/17/2020, 5:44 PMpulumi:pulumi:Stack infra_db-dev
- ├─ aws:ec2:Subnet migration-vpc-public-1 deleting completing deletion from previous update
- └─ aws:ec2:Subnet migration-vpc-public-0 deleting completing deletion from previous update
refined-teacher-35628
08/17/2020, 5:45 PMpulumi refreh
, pulumi stack export|import
but no luckbillions-morning-42067
08/17/2020, 5:54 PMbillions-truck-90982
08/17/2020, 6:15 PMbillions-truck-90982
08/17/2020, 6:18 PMbitter-application-91815
08/17/2020, 7:10 PMbitter-application-91815
08/17/2020, 7:10 PMbitter-application-91815
08/17/2020, 7:11 PMastonishing-quill-88807
08/17/2020, 8:05 PMfull-dress-10026
08/17/2020, 10:22 PMexport interface UserMapping {
/**
* The ARN of the IAM user to add.
*/
userArn: pulumi.Input<aws.ARN>;
/**
* The user name within Kubernetes to map to the IAM user. By default, the user name is the ARN of the IAM user.
*/
username: pulumi.Input<string>;
/**
* A list of groups within Kubernetes to which the user is mapped to.
*/
groups: pulumi.Input<pulumi.Input<string>[]>;
}
Both userArn and username are required yet the docstring for username seems to indicate is filled in by default. Should username actually be optional?careful-engine-71229
08/18/2020, 3:46 AMError: providerCredentialOpts and AWS_PROFILE must be set together
?miniature-leather-70472
08/18/2020, 12:20 PMvar aciPrincipalId =
Output.Tuple(args.ResourceGroupName, args.AksClusterName)
.Apply(aciIdentity => Pulumi.Azure.Authorization.GetUserAssignedIdentity.InvokeAsync(new Pulumi.Azure.Authorization.GetUserAssignedIdentityArgs
{
Name = $"aciconnectorlinux-{aciIdentity.Item2}",
ResourceGroupName = $"{aciIdentity.Item1}-NODES"
}))
.Apply(mi => mi.PrincipalId);
I have tried adding the AKS ID as a property of the Tuple as well, but it makes no difference.swift-rose-43128
08/18/2020, 12:40 PM