thousands-lamp-35559
09/04/2023, 12:21 AMpulumi new azure-csharp
stale-tomato-37875
09/04/2023, 4:47 AMstale-tomato-37875
09/04/2023, 4:49 AMcareful-vegetable-11632
09/04/2023, 1:39 PMpowerful-solstice-72628
09/05/2023, 7:02 AMprod_us-east-1_001
, prod_us-east-1_002
, and so on. When we run Terraform for a workspace, we pass in matching variables like -var env=prod -var region=us-east-1 -var id=001
.
How do I model this in Pulumi?busy-kitchen-1186
09/05/2023, 6:08 PMstale-family-94038
09/06/2023, 9:41 AMstale-continent-157
09/07/2023, 3:05 AMstale-continent-157
09/07/2023, 3:05 AMmost-vr-42891
09/07/2023, 5:27 PMpolite-baker-44737
09/09/2023, 4:36 PMFlexibleServer
class.
However, I've encountered difficulty in identifying the correct namespace to import this class.
Would you be able to direct me to a tutorial or documentation that addresses this?
I've been unable to locate pertinent resources on the topic.
I'm using C#
Thank you for your assistance.wonderful-lock-17109
09/11/2023, 10:39 AMancient-park-44711
09/11/2023, 1:33 PMbrash-waitress-49970
09/12/2023, 9:19 AMsparse-optician-70334
09/12/2023, 2:01 PMechoing-kite-20563
09/12/2023, 3:04 PMsome-ambulance-32599
09/13/2023, 7:20 AMDownloading the .NET Runtime.
Downloading .NET version(s) 7.0.11 ....... Done!
.NET 7.0.11 executable path: /root/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.11/dotnet
devcontainer.json
{
"name": "Pulumi-Azure",
"build": {
"dockerfile": "Dockerfile"
},
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/root/.pulumi/bin"
},
"runArgs": [
"--env-file",
".devcontainer/devcontainer.env"
],
"customizations": {
"vscode": {
"settings": {
"dotnet.sdk": "6.0"
},
"extensions": [
"ms-dotnettools.csharp",
"jebbs.plantuml",
"k--kato.docomment",
"EditorConfig.EditorConfig"
]
}
}
}
dockerfile
# Use the Pulumi .NET image as the base
FROM pulumi/pulumi-dotnet:latest
# Install dependencies for Azure CLI
RUN apt-get update \
&& apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg vim git
# Install Azure CLI
RUN curl -sL <https://packages.microsoft.com/keys/microsoft.asc> | \
gpg --dearmor | \
tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null && \
AZ_REPO=$(lsb_release -cs) && \
echo "deb [arch=amd64] <https://packages.microsoft.com/repos/azure-cli/> $AZ_REPO main" | \
tee /etc/apt/sources.list.d/azure-cli.list && \
apt-get update && \
apt-get install -y azure-cli
acceptable-diamond-84047
09/13/2023, 6:15 PMhttp://<ingress_host_name>/<service>
but the ingress controller never assigns the certificate correctly, because all https://
requests fail with a 502. I've also tried the AG addon w/ similar resultsrough-byte-99113
09/13/2023, 8:46 PMpulumi new aws-typescript -n nginx-simple --dir ./projects/nginx-simple
Then I deleted the ./projects/nginx-simple
directory, then ran the same exact pulumi new
command as before and it's telling me: error: a project with this name already exists: nginx-simple
I checked through the state in the s3 bucket, and I don't see anything related to projects, only stacks. And there's no CLI option to remove or list what projects exist. According to the documentation:
A Pulumi project is any folder which contains aSo why is it that I deleted the directory that contains the project, but the pulumi CLI tells me that the projectfile. When in a subfolder, the closest enclosing folder with aPulumi.yaml
file determines the current project. A new project can be created withPulumi.yaml
. A project specifies which runtime to use and determines where to look for the program that should be executed during deployments. Supported runtimes arepulumi new
,nodejs
,python
,dotnet
,go
, andjava
.yaml
nginx-simple
already exists? Where exactly is it storing the information about what projects have been created? How do I remove nginx-simple
from that list, so I can run pulumi new aws-typescript -n nginx-simple --dir ./projects/nginx-simple
again without receiving an error?gorgeous-vegetable-27176
09/14/2023, 11:05 AMpulumi up
?gorgeous-vegetable-27176
09/14/2023, 11:21 AMpulumi up
run the actual Go code to perform what is required?sparse-optician-70334
09/14/2023, 4:31 PMeager-gigabyte-20835
09/14/2023, 4:54 PM_ = new Rule(removeServerNameRuleName, new RuleArgs
{
Order = order,
ResourceGroupName = resourceGroup.Name,
ProfileName = parm.ProfileName,
RuleName = removeServerNameRuleName,
RuleSetName = ruleset.Name,
Actions = new[]
{
new DeliveryRuleResponseHeaderActionArgs
{
Name = $"RemoveServerHeader",
Parameters = new HeaderActionParametersArgs
{
HeaderName = "Server",
HeaderAction = "Delete",
TypeName = "DeliveryRuleHeaderActionParameters"
}
}
}
});
busy-toothbrush-90194
09/14/2023, 5:20 PMacceptable-gpu-52162
09/14/2023, 5:58 PMbusy-kitchen-1186
09/14/2023, 8:14 PMpulumi up
java.lang.IllegalStateException: java.lang.ClassNotFoundException: org.apache.logging.log4j.util.Activator
at com.google.common.reflect.ClassPath$ClassInfo.load(ClassPath.java:382)
at com.pulumi.serialization.internal.ResourcePackages.lambda$discoverResourceTypes$0(ResourcePackages.java:71)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
witty-vegetable-61961
09/15/2023, 3:09 PMsparse-optician-70334
09/15/2023, 4:15 PMpython
import pulumi
from pulumi_aws import s3
# Define the S3 bucket
bucket = s3.Bucket('mybucket')
# List all objects in the S3 bucket
objs = {}
bucket_list = s3.Bucket("bucketList", bucket = bucket.id)
for obj in bucket_list.objects:
objs[obj.key] = s3.BucketObject(obj.key,
bucket = bucket.id,
source = pulumi.FileAsset(obj.key))
# Export the name of the bucket
pulumi.export('BucketName', bucket.id)
# Register all objects for deletion
pulumi.Resource.register_outputs(**objs)
it suggested this for loop. But this seems to be insensibly slow in case the bucket has many elements - and should call the empty command instead.
How can I tear down no longer needed resources including the side effects?sparse-optician-70334
09/15/2023, 4:42 PMbusy-toothbrush-90194
09/15/2023, 5:05 PM