rhythmic-kangaroo-93098
03/30/2023, 12:04 PMbrief-car-60542
03/30/2023, 4:54 PMsome-grass-63999
03/30/2023, 10:14 PMwitty-vegetable-61961
03/30/2023, 11:43 PMbest-quill-31250
03/31/2023, 12:47 AMflat-nest-33539
03/31/2023, 10:50 AMbusy-memory-19818
04/03/2023, 4:09 AMfast-solstice-31083
04/03/2023, 5:46 AMfast-solstice-31083
04/03/2023, 5:56 AMconst myManagedDisk = new azure.compute.ManagedDisk("myManagedDisk", {
location: resourceGroup.location,
resourceGroupName: resourceGroup.name,
storageAccountType: "Standard_LRS",
createOption: "Empty",
diskSizeGb: 250,
});
const gpuDataDiskAttachment = new azure.compute.DataDiskAttachment("myDataDiskAttachment", {
managedDiskId: myManagedDisk.id,
virtualMachineId: vm.id,
lun: 10,
caching: "ReadOnly",
});
That worked well. The disk still exist in the RessourceGroup, but on rerun i want to use the existing managed disk, but i m not able to attach it to a new a vm if i rerun the stack, no matter what i change.
if i dont change my script creationOption would be "Empty" like shown above, then i get : Code="ConflictingUserInput" Message="source-osdisk already exists in resource group RG-5265FCB5. Only CreateOption.Attach is supported."
Ok, but when i change to attach i get: resource 'source' has a problem: expected create_option to be one of [Copy Empty FromImage Import ImportSecure Restore Upload], got Attach. Examine values at 'ManagedDisk.CreateOption'.
In doc: https://www.pulumi.com/registry/packages/azure/api-docs/compute/manageddisk/ there "Possible values include:" are empty
But how would i attach an existing manged disk to the vm.curved-kitchen-24115
04/03/2023, 10:29 PMlet hostAnnotation: { [key: string]: string } = {};
if (cfg.get("traefikHosts")) {
hostAnnotation = {
"somekey": (
cfg.require("hosts") as unknown as string[]
).join(","),
};
}
I get: TypeError: cfg.require(...).join
is not a function
I cannot for the life of me work out how to make the type checker happy 😞cuddly-easter-41456
04/04/2023, 11:01 AMrhythmic-kangaroo-93098
04/05/2023, 8:02 AMrhythmic-kangaroo-93098
04/05/2023, 8:43 AMnice-tailor-51650
04/06/2023, 6:46 PMstop_state = aws.ec2transitgateway.InstanceState("stop_state",
instance_id=new_ec2.id,
state="stopped")
terminate_state = aws.ec2transitgateway.InstanceState("terminate_state",
instance_id=new_ec2.id,
state="terminated")
terminate_state
does not work because there is no possible argument of "terminated" for the state
parameter.
however, i'm having a hard time finding a way to terminate an ec2 instance. there are no direct methods on the instance, and there are no arguments for when i created it that would allow to do thisnice-tailor-51650
04/06/2023, 6:49 PMpulumi destroy
?fancy-crayon-34226
04/07/2023, 1:05 AMrhythmic-kangaroo-93098
04/07/2023, 12:51 PMwitty-vegetable-61961
04/08/2023, 12:14 AMthankful-father-64418
04/09/2023, 4:42 AMPreviewing update (dev)
View in Browser (Ctrl+O): <https://app.pulumi.com/xxxx>
Type Name Plan Info
+ pulumi:pulumi:Stack quickstart-dev create
└─ azure-native:resources:ResourceGroup resourceGroup 1 error
Diagnostics:
azure-native:resources:ResourceGroup (resourceGroup):
error: could not determine az version: unmarshaling the result of Azure CLI: invalid character 'a' looking for beginning of value
I'm running Azure CLI 2.47.0.refined-photographer-38383
04/10/2023, 6:51 PMThe stack name is specified in one of the following formats:
stackName: Identifies the stack stackName in the current user account or default organization, and the project specified by the nearest Pulumi.yaml project file.
orgName/stackName: Identifies the stack stackName in the organization orgName, and the project specified by the nearest Pulumi.yaml project file.
orgName/projectName/stackName: Identifies the stack stackName in the organization orgName and the project projectName. projectName must match the project specified by the nearest Pulumi.yaml project file.
However when I try to create a new stack following the orgName/projectName/StackName
syntax I get the following error:
geoff@geoffs-mbp db % pulumi stack init
stack name: (dev) organization/db/poc
Sorry, 'organization/db/poc' is not a valid stack name. stack names are limited to 100 characters and may only contain alphanumeric, hyphens, underscores, or periods: "organization/db/poc"
ambitious-musician-70428
04/11/2023, 6:10 PMimport pulumi
import pulumi_docker as docker
remote_docker = docker.Provider("remote_docker",
host="<ssh://user@xxx.xxx.xxx.xxx:22>",
ssh_opts=["-i", "/home/local_user/.ssh/id_rsa"]
)
container = docker.Container("hello",
name="hello",
tty="true",
image="<http://my-registry.com/alpine:latest|my-registry.com/alpine:latest>",
command=["sleep", "100000000"],
opts=pulumi.ResourceOptions(provider=remote_docker),
)
I'm getting the following error:
Diagnostics:
docker:index:Container (hello):
error: 1 error occurred:
* Error pinging Docker server: Error response from daemon: 400 Bad Request: malformed Host header
This works locally ... but not remotely ... I can access the VM using ssh and run the container manually
Any help is appreciated 🙂flat-sunset-12668
04/12/2023, 1:12 AMrefined-photographer-38383
04/12/2023, 6:16 PMpulumi stack init
it doesn't use the defaults. I would have hoped that it would ask me about each config in the template and hitting enter uses the default. How does one configure a new stack interactively?famous-car-29094
04/14/2023, 2:01 AMsparse-iron-45589
04/14/2023, 8:48 AMcrooked-lunch-29479
04/14/2023, 9:26 PMus-east-1
. Can anyone point me to how I should go about doing it ? I’m mucking around right now trying to identify the right place to modify it VPC settings ?crooked-lunch-29479
04/15/2023, 3:04 PMefsID := "fs-0f1f2f3f4f5f6f7f8" // Replace this with the EFS ID
// Connect to EFS Filesystem and mount it
efs, err := efs.GetFileSystem(ctx, "ark-efs", efsID, nil)
if err != nil {
panic(err)
}
// Find the default Relational Database Service (RDS)
func findDefaultRDS(ctx *pulumi.Context) *rds.Instance {
// Find default RDS
rdsName := "Whatever"
rdsID := "rds-1234567890"
rds, err := rds.GetInstance(ctx, rdsName, rdsID)
if err != nil {
panic("Could not find RDS")
}
return rds
}
crooked-lunch-29479
04/15/2023, 3:05 PMcrooked-lunch-29479
04/15/2023, 3:06 PMcrooked-lunch-29479
04/15/2023, 3:38 PMIDInput