stocky-petabyte-29883
02/15/2022, 6:42 PMstocky-petabyte-29883
02/15/2022, 8:13 PMmillions-journalist-34868
02/15/2022, 11:44 PMvar sqlServer = new Server($"sql-sqlDbWithAzureAd-{Deployment.Instance.StackName}", new ServerArgs
{
ResourceGroupName = resourceGroup.Name,
Administrators = new ServerExternalAdministratorArgs
{
Login = sqlAdAdmin.UserPrincipalName,
Sid = sqlAdAdmin.Id,
AzureADOnlyAuthentication = true,
AdministratorType = AdministratorType.ActiveDirectory,
PrincipalType = PrincipalType.User,
},
});
var database = new Database("sqldb-sqlDbWithAzureAd-Main", new DatabaseArgs
{
ResourceGroupName = resourceGroup.Name,
ServerName = sqlServer.Name,
Sku = new SkuArgs
{
Name = "Basic"
}
});
var authorizeAdGroup = new Command("AuthorizeAdGroup", new CommandArgs
{
Create = $"sqlcmd -S {sqlServer.Name} -?",
Interpreter = new InputList<string>
{
"pwsh",
"-c"
}
}, new CustomResourceOptions
{
DependsOn = new InputList<Pulumi.Resource> { enableLocalMachine, database, sqlServer }
});
shy-dentist-71683
02/16/2022, 3:52 AMsteep-beach-52652
02/16/2022, 5:58 AMlimited-army-96747
02/16/2022, 11:23 AMalert-zebra-27114
02/16/2022, 11:24 AMearly-ability-21848
02/16/2022, 12:18 PMError creating EdgeCacheOrigin: googleapi: Error 404: Method not found.
when trying to create an EdgeCacheOrigin
for a bucket, pretty much from the documentation:
const webStaticOrigin = new gcp.networkservices.EdgeCacheOrigin(
"web-static-origin",
{
originAddress: webStaticBucket.url,
}
);
any idea how to fix?lively-breakfast-59078
02/16/2022, 1:58 PM1 error occurred:
* updating urn:pulumi:production::<service-name>::aws:ecr/registryScanningConfiguration:RegistryScanningConfiguration::<service-name>: 1 error occurred:
* error creating ECR Registry Scanning Configuration: InvalidParameterException: Invalid parameter failed to satisfy constraint: 'Invalid scan frequency: MANUAL'
Any pointers?elegant-plumber-85706
02/16/2022, 3:23 PMv20200214preview
like this:
export const myDB = new azureNative.dbforpostgresql.v20200214preview.Server(
"myDB",
{
administratorLogin: config.POSTGRES_USERNAME,
administratorLoginPassword: config.POSTGRES_PASSWORD,
createMode: "Default",
storageProfile: {
backupRetentionDays: 7,
storageMB: 32768,
},
resourceGroupName: config.RESOURCE_GROUP_NAME,
serverName: config.POSTGRES_SERVER_NAME,
sku: {
name: config.POSTGRES_INSTANCE_TYPE,
tier: config.POSTGRES_INSTANCE_TIER,
},
version: "13",
},
{
dependsOn: resourceGroup,
}
)
But when I try to add new database to this server I can't find Database
resource in this preview class:
new azureNative.dbforpostgresql.v20200214preview.Database <------ This resource not exists in Pulumi
Can you tell me how I can add more database to the above postgres server?
In the azure document they told that it's allowed and possible to use single postgres server with multiple database:
Within an Azure Database for PostgreSQL server, you can create one or multiple databases. You can opt to create a single database per server to utilize all the resources, or create multiple databases to share the resources.Ref: https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-servers
freezing-van-87649
02/16/2022, 5:10 PMvictorious-wall-1075
02/16/2022, 5:11 PM➜ pulumi login "<s3://pulumi-bucket?endpoint=192.168.31.2:54640&disableSSL=true&s3ForcePathStyle=true>"
When I try to bring up the stack:
➜ pulumi up
error: could not query backend for stacks: error listing stacks: could not list bucket: blob (code=Unknown): MissingRegion: could not find region configuration
Also, my minio endpoint has login/password, I am not sure where to specify thatbored-table-20691
02/16/2022, 7:02 PMitay/myproj/mystack
, and then I use a StackReference to refer to it from another project and stack (itay/someproj/clientstack
). Then, say I rename the original stack to itay/myproj2/mystack2
.
Now, if I do a pulumi up
on the itay/someproj/clientstack
stack. Will I get an error saying that itay/myproj/mystack
doesn’t exist, since it’s stored in the state of this client stack? What’s the right way to tackle this?hallowed-horse-57635
02/16/2022, 10:06 PMfast-easter-23401
02/16/2022, 10:14 PMhallowed-horse-57635
02/16/2022, 10:49 PMvictorious-wall-1075
02/17/2022, 4:04 AMself.projectSettings = auto.ProjectSettings(
name=projectName,
runtime="python",
backend={"url": f"<s3://pulumi?region=us-east-1&endpoint={epUrl}&disableSSL=true&s3ForcePathStyle=true>"}
)
When I run my code - I see this:
> raise Exception(err)
E Exception: Error Deploying HELM -
E code: 255
E stdout:
E stderr: Logging in using access token from PULUMI_ACCESS_TOKEN
E error: invalid access token
IACLib/src/pulumi_iac/platforms/kubernetes/__init__.py:145: Exception
What am I missing here that pulumi is asking for PULUMI_ACCESS_TOKEN ?
If I do pulumi login (and it produces the credentials file), things work fine.
➜ cat ~/.pulumi/credentials.json
{
"current": "<s3://pulumi?region=us-east-1>\u0026endpoint=192.168.31.2:54640\u0026disableSSL=true\u0026s3ForcePathStyle=true",
"accessTokens": {
"<s3://pulumi?region=us-east-1>\u0026endpoint=192.168.31.2:54640\u0026disableSSL=true\u0026s3ForcePathStyle=true": ""
},
"accounts": {
"<s3://pulumi?region=us-east-1>\u0026endpoint=192.168.31.2:54640\u0026disableSSL=true\u0026s3ForcePathStyle=true": {
"lastValidatedAt": "0001-01-01T00:00:00Z"
}
}
}%
and I have to set these exports:
export AWS_ACCESS_KEY_ID=miniouser
export AWS_SECRET_ACCESS_KEY=miniopasswd
export AWS_PROFILE=minio
I want to know how to pass the credentials via automation without having this file..victorious-wall-1075
02/17/2022, 5:29 AM➜ ll pulumi
total 139196
-rwxr-xr-x 1 bhakta bhakta 20866682 Feb 5 00:30 pulumi-language-python
-rwxr-xr-x 1 bhakta bhakta 20916427 Feb 5 00:30 pulumi-language-nodejs
-rwxr-xr-x 1 bhakta bhakta 21950449 Feb 5 00:30 pulumi-language-go
-rwxr-xr-x 1 bhakta bhakta 20813269 Feb 5 00:30 pulumi-language-dotnet
-rwxr-xr-x 1 bhakta bhakta 57955904 Feb 5 00:30 pulumi
-rwxr-xr-x 1 bhakta bhakta 1893 Feb 5 01:30 pulumi-resource-pulumi-python
-rwxr-xr-x 1 bhakta bhakta 238 Feb 5 01:30 pulumi-resource-pulumi-nodejs
-rwxr-xr-x 1 bhakta bhakta 6142 Feb 5 01:30 pulumi-language-python-exec
-rwxr-xr-x 1 bhakta bhakta 1853 Feb 5 01:30 pulumi-analyzer-policy-python
-rwxr-xr-x 1 bhakta bhakta 245 Feb 5 01:30 pulumi-analyzer-policy
stocky-spring-27341
02/17/2022, 6:17 AMstocky-spring-27341
02/17/2022, 7:11 AMDiagnostics:
pulumi:pulumi:Stack (xxxx):
error: update failed
aws:ecs:Service (xxxx):
error: 1 error occurred:
* failed creating ECS service (xxxx): InvalidParameterException: The target group with targetGroupArn arn:aws:elasticloadbalancing:us-west-2:xxxx:targetgroup/xxxx/xxxx does not have an associated load balancer.
Resources:
24 unchanged
Duration: 8m3s
stocky-spring-27341
02/17/2022, 7:11 AMmodern-controller-89617
02/17/2022, 9:10 AMelegant-plumber-85706
02/17/2022, 9:59 AMaz postgres flexible-server db create --resource-group
--server-name
[--charset]
[--collation]
[--database-name]
[--subscription]
stocky-spring-27341
02/17/2022, 1:28 PMaws.cloudwatch.MetricAlarm
and I want to use <http://aws.lb|aws.lb>.TargetGroup.name
to construct the resource_name
I get this error.
source:
aws.cloudwatch.MetricAlarm(
resource_name=Output.concat("", target_group.name, "-CPUHigh-alarm"),
error:
raise TypeError("Expected resource name to be a string")
TypeError: Expected resource name to be a string
error: an unhandled error occurred: Program exited with non-zero exit code: 1
Surprisingly, this same approach works for aws.cloudwatch.MetricAlarm.dimensions
treat_missing_data="breaching",
dimensions={
"TargetGroup": Output.concat("", args.target_group.name),
},
I haven't been able to figure out how to use existing resource fields when creating new resources. What am I missing?rich-tiger-43483
02/17/2022, 2:57 PMID
.
I have a resource called Group
and other called Check
. You should be able to use the groupId
property of the Check
in order to link them.
The problem is when I tried to do it, I get this error message:
error: checkly:index/check:Check resource 'pulumi-api-check' has a problem: Attribute must be a whole number, got 257503. Examine values at 'Check.GroupId'
I guess this is related with types and for some reason the ID
of the group is being returned as string
when it should be a number
.
In my TF provider the ID
has the correct type, so I am not sure why this is happening. I could try to manually parse the ID
to integer when setting it in the group but don’t think will be a good DX.
Here is the JS source of the example I am trying to make it work 👇
const checkly = require( "@pulumi/checkly");
const group = new checkly.CheckGroup("group", {
activated: true,
concurrency: 1,
locations: ['us-east-1'],
});
new checkly.Check("api-check", {
activated: true,
frequency: 10,
type: "API",
groupId: group.id
});
Any help/suggestion will be appreciated 🙏wonderful-portugal-96162
02/17/2022, 4:17 PMhigh-grass-3103
02/17/2022, 4:50 PMglamorous-glass-45224
02/17/2022, 5:01 PMpulumi delete <urn>
on some resource that still exists. (k8s namespace) pulumi refresh
isn't doing anything to add it back to the state and pulumi up
fails because the resource already exists. How can I add it back to the state without having to destroy first?victorious-wall-1075
02/17/2022, 5:02 PM[default]
aws_access_key_id = MyKey
aws_secret_access_key = MySecret
[minio]
aws_access_key_id = minioadmin
aws_secret_access_key = minioadmin
I am setting AWS_PROFILE=minio so the backend can use the minio profile.
However, this collides with AWS operations as pulimi tries to use the same key with AWS and fails.. If set the profile to default the backend calls fail.. How do I get around this?modern-quill-17695
02/17/2022, 6:07 PM