brief-car-60542
05/24/2023, 6:41 PMdamp-lock-9822
05/24/2023, 9:02 PMUnhandled exception: Error: Invoke: Default provider for 'aws' disabled. 'aws:ec2/getAmi:getAmi' must use an explicit provider
. It appears that the provider has not been created at this point, causing the getAmi call to fail because it attempts to use a default provider (which I've disabled). Has anyone else observed behavior like this, and if so is there some sort of workaround ?nice-application-79035
05/24/2023, 10:28 PMable-camera-57198
05/25/2023, 2:52 AMPulumi.yaml
and Pulumi.*.yaml
which correspond to different, but structurally identical environments.stocky-father-68249
05/25/2023, 5:09 AMbrave-kite-38152
05/25/2023, 6:52 AMpulumi import aws:alb/targetGroup:TargetGroup app_front_end my_arn
we are getting the following error:
error: anonymous.pp:30,22-31,14: cannot assign expression of type (null) to location of type list( { onDeregistration: output(string) | string, onUnhealthy: output(string) | string }
| output({ onDeregistration: string, onUnhealthy: string }))
| output(list({ onDeregistration: string, onUnhealthy: string }))?: ;
Does anyone know how to resolve this issue? May it is a cli bug or is it a bug on the AWS side?enough-mechanic-81927
05/25/2023, 11:22 AMconst vpc = aws.ec2.getVpc({
id: "your vpc"
})
const vpcId = vpc.then((vpc)=>vpc.id)
console.log(vpcId)
// An ECS cluster to deploy into
const cluster = new aws.ecs.Cluster("cluster", {});
// An ALB to serve the container endpoint to the internet
const loadbalancer = new awsx.lb.ApplicationLoadBalancer("loadbalancer", {});
enough-mechanic-81927
05/25/2023, 11:23 AMenough-mechanic-81927
05/25/2023, 11:23 AMable-camera-57198
05/25/2023, 12:56 PMadorable-analyst-27426
05/25/2023, 2:45 PMaz login
.` any advice appreciatedbrief-car-60542
05/25/2023, 4:18 PMnice-application-79035
05/25/2023, 5:15 PMbrief-car-60542
05/25/2023, 5:47 PMIamRole(applyStatus=in-sync, iamRoleArn=arn***)
My pulumi state think this iamrole value is this.
And everytime I ran pulumi up, it needs to do a update,
~ [0]: "IamRole(applyStatus=in-sync, iamRoleArn=arn:aws:iam::***:role/***)" => "arn:aws:iam::***:role/***"
fast-midnight-78448
05/25/2023, 7:02 PMprehistoric-translator-89978
05/25/2023, 9:06 PM❯ pulumi convert --language typescript --from terraform
warning: Plugin converters are currently experimental
The Terraform code in question is just from the AWS Terraform blueprints multi-tenancy-with-teams
delightful-jelly-17346
05/25/2023, 11:52 PMpulumi
experts and practitioners, as we implemented our pulumi
automation without interacting with pulumi CLI
, we have encountered the following challenges. If there is any common interests in the community of going over these obstacles, we will highly appreciate anyone could share your experience about the following:
• How do we import existing resources (not created by pulumi
) into an established pulumi
stack?
• How do we get the physical name out of a resource instance, and use it in another resource? The name of a resource instance is a pulumi.output.Output
in Python, which disallows us to use it in subsequent concatenation of building our resource naming convention.
• If some pulumi
managed resources get removed/modified by someone without going through our pulumi program, how should we manage such situations and keep them in sync?
Many thanks.
@narrow-wall-86026 @steep-sunset-89396big-potato-91793
05/26/2023, 1:02 AM1. Create an account with the provider's service and generate any necessary credentials, e.g. API keys.
- Email: <bot@pulumi.com>
- Password: (Create a random password in 1Password with the maximum length and complexity allowed by the provider.)
- Ensure all secrets (passwords, generated API keys) are stored in Pulumi's 1Password vault.
How can I stop that in pulumi 1password vault 🤔famous-monkey-79706
05/26/2023, 8:30 AMcreamy-monkey-35142
05/26/2023, 10:37 AMdef check_namespace_not_exist(namespace):
try:
return Namespace.get("existing-namespace", namespace)
except Exception: # Exception raised when a namespace does not exist
return None
existing_namespace = check_namespace_not_exist(namespace_name)
if existing_namespace is None:
pulumi.export("namespace_not_exist", True)
else:
pulumi.export("namespace_not_exist", False)
then it return message like image below , but when I add more logic into code
if existing_namespace is None:
pulumi.export("namespace_not_exist", True)
print("Namespace not exist")
else:
pulumi.export("namespace_not_exist", False)
print("Namespace exist")
I noticed that print()
is never triggered. so do you guys know how to check if a k8s’s namespace exist?full-xylophone-85034
05/26/2023, 11:54 AMfull-xylophone-85034
05/26/2023, 11:54 AMearly-doctor-42110
05/26/2023, 2:24 PMmillions-furniture-75402
05/26/2023, 2:26 PMif (thing) { new resource({...}); }
declare within the "DSL":
new resource({...}, { condition: (resource) => resource.instanceQuantity == 1 });
Can I abuse a transformation
for this?agreeable-kilobyte-59253
05/29/2023, 7:27 AMworried-queen-62794
05/29/2023, 9:09 AMpulumi stack rename
with a fully-qualified name but this project is self-managed and so I have no organization name.dry-kangaroo-89921
05/29/2023, 7:56 PMinterface{
var: gcp.compute.BackendServiceArgs;
}
I was wondering if that was a bad practice.
2. I'm getting values from stack config. When I get those values they have pulumi.input wrapper around them. Specifically I have an array that has pulumi.input wrapper around it and inside of that array are pulumi.input<strings>. How can I substitute values that are inside of that array with a different value. The values that are defined in the stack are placeholders that I want to replace in code.rapid-belgium-4304
05/29/2023, 11:41 PM@pulumi/awsx
but not otherwise.
Seems like the profile is getting lost between aws
and awsx
?
Details: no valid credential sources for found.
^^^^
missing who the credentials are forrapid-belgium-4304
05/29/2023, 11:49 PMexport const ecr = new aws.ecr.Repository(project, { name: project, tags })
This does not work:
export const ecr = new awsx.ecr.Repository(project, { name: project, tags })
But it does work with old-fashion AWS CLI credentials.
Does Crosswalk not support AWS SSO?rapid-belgium-4304
05/30/2023, 12:06 AM