crooked-laptop-67565
07/12/2022, 10:02 PMpulumi export
and removing the deleted resource from the JSONcrooked-laptop-67565
07/12/2022, 10:04 PMrefresh
is failing because of this error, it's just not failing to update the one missing resourcewonderful-midnight-15751
07/12/2022, 10:40 PMimport * as gcp from "@pulumi/google-native";
const customProvider = new gcp.Provider("default",{
project: "12312312"
})
const agent = new gcp.dialogflow.v3.Agent("Test", {
defaultLanguageCode: "DE",
displayName: "Pulumi-Demo",
timeZone: "Europe/Berlin",
location: "global",
}, {
provider: customProvider
})
const page = new gcp.dialogflow.v3.Page("basicPage", {
agentId: agent.id,
displayName: "BasicPage",
flowId: agent.startFlow,
location: "global",
}, {
provider: customProvider
})
Poorly I am getting the following error message:
error: error sending request: googleapi: Error 400: com.google.apps.framework.request.BadRequestException: Page name should not be specified as it will be automatically generated by Dialogflow upon creation.: "<https://dialogflow.googleapis.com/v3/projects/.../locations/global/agents/v3%2Fprojects%2Flocations%2Fglobal%2Fagents%2Fc6e7342e-3385-4846-af64-cbf6918c2b39/flows/projects%2FFlocations%2Fglobal%2Fagents%2Fc6e7342e-3385-4846-af64-cbf6918c2b39%2Fflows%2F00000000-0000-0000-0000-000000000000/pages>" map[__autonamed:true agentId:v3/projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39 displayName:Hallo flowId:projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39/flows/00000000-0000-0000-0000-000000000000 location:global name:projects/.../locations/global/agents/v3/projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39/flows/projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39/flows/00000000-0000-0000-0000-000000000000/pages/5757dc8e-e2ce-4d51-a257-675cd7c00e01-5bc9156 project:...]
It seams Pulumi wants to set the name / id of the page. But google does not allow it. Someone who tried this earlier?
Thanks for helping!able-engineer-79880
07/13/2022, 3:16 AMexport class subNet {
constructor(name: string) {
const data = new azure.network.Subnet("data", {
addressPrefixes: [config.require('datasubnetrange')],
enforcePrivateLinkEndpointNetworkPolicies: true,
name: "data",
resourceGroupName: "dpc-spi-networking-"+config.require('envid')+"-rg-aue-"+config.require('index'),
serviceEndpoints: [
//"Microsoft.KeyVault",
//"Microsoft.AzureActiveDirectory",
//"Microsoft.Storage",
//"Microsoft.Sql",
config.require('serviceEndpoints')
],
virtualNetworkName: "dpc-vnet-spi-"+config.require('envid')+"-aue-"+config.require('index'),
}, {
protect: true,
});
}
}
My stack yaml will look something like
env:serviceEndpoints:
- Microsoft.KeyVault
- Microsoft.AzureActiveDirectory
- Microsoft.Storage
- Microsoft.Sql
I've tried everything I can think of. Any help would be greatly appreciated.helpful-account-44059
07/13/2022, 7:27 AMpulumi refresh
, i got these errors, i'm sure i have the correct aws profile config
aws:ec2:SecurityGroup (relation-nodeSecurityGroup):
error: Preview failed: 1 error occurred:
* error configuring Terraform AWS Provider: AWS account ID not previously found and failed retrieving via all available methods. See <https://www.terraform.io/docs/providers/aws/index.html#skip_requesting_account_id> for workaround and implications. Errors: 3 errors occurred:
* failed getting account information via iam:GetUser: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
status code: 403, request id: 34fa5f6b-9d3a-420a-a840-3c5a1c0a1cc2
* error calling sts:GetCallerIdentity: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
status code: 403, request id: 64751105-14bb-40e7-b12d-2b94e75a9280
* failed getting account information via iam:ListRoles: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
status code: 403, request id: 70da462e-b97e-42f2-a389-62147dd6c695
jolly-church-88521
07/13/2022, 10:25 AMstate.json
file from S3 bucket and now I’m trying to do something like this:
➜ sandbox git:(main) ✗ pulumi stack import --file state.json
error: this command requires a stack, but there are none
➜ sandbox git:(main) ✗ pulumi stack import --stack eba --file state.json
error: no stack named 'eba' found
Am I missing something? I don’t see any other options for import
argument. And I see eba
name in the state.json file:
➜ sandbox git:(main) ✗
{
"version": 3,
"checkpoint": {
"stack": "eba", (...)
best-apartment-2309
07/13/2022, 11:00 AMechoing-postman-88590
07/13/2022, 11:49 AMurllib
), but I would like pulumi to understand to make the API call only once on the first pulumi up
.
In other words is there a pulumi resource that make REST API call?
Thanksquick-painter-61380
07/13/2022, 12:04 PMhigh-grass-3103
07/13/2022, 4:46 PMSelfSignedCert.subjects
has changed to subject (singular) and from array to a scalar, but I don't recall changing version in the package.json...lemon-church-28946
07/13/2022, 7:28 PMacoustic-truck-53557
07/13/2022, 9:45 PMpulumi up
it says my connection resource was created but I see no update on the Auth0 web ui. When I run pulumi up
(multiple times) it always ways the plan is to create the "options" on my connection. Even though nothing has changed since the last pulumi up
. I'm provisioning Connection like this:
auth0.Connection(
f"{name}-connection",
options=auth0.ConnectionOptionsArgs(
brute_force_protection=True,
custom_scripts={"login": login_script},
debug=True,
disable_cache=True,
disable_signup=True,
import_mode=False,
name="Database Connection Opts",
tenant_domain=auth0.get_tenant().domain,
),
strategy="custom",
enabled_clients=client_ids,
display_name="Database Connection",
opts=opts,
)
Does anyone have any clue what I might be doing wrong?incalculable-garden-60162
07/14/2022, 1:37 AMquiet-hairdresser-18834
07/14/2022, 3:44 AMstocky-petabyte-29883
07/14/2022, 9:56 AMstocky-petabyte-29883
07/14/2022, 10:01 AMincalculable-garden-60162
07/14/2022, 10:01 AMhelpful-account-44059
07/14/2022, 10:32 AMCheck that your input satisfies the regular expression [0-9A-Za-z]*
2. I change the Sid to AllowPublishAlarms
error creating IAM Policy sns-access-policy: MalformedPolicyDocument: Policy document should not specify a principal
const snsAccessPolicy = new aws.iam.Policy("sns-access-policy", {
name: "sns-access-policy",
policy: {
Version: "2012-10-17",
Statement: [
{
Sid: "Allow_Publish_Alarms",
Effect: "Allow",
Principal: {
Service: "<http://aps.amazonaws.com|aps.amazonaws.com>",
},
Action: ["sns:Publish", "sns:GetTopicAttributes"],
Resource: "arn:aws:sns:ap-southeast-1:482414749843:amp-sns-topic",
Condition: {
StringEquals: {
"AWS:SourceAccount": "482414749843",
},
ArnEquals: {
"aws:SourceArn":
"arn:aws:aps:ap-southeast-1:482414749843:workspace/ws-be6e741f-d8ac-4330-b0fb-6a0c0aa92d6f",
},
},
},
],
},
});
helpful-account-44059
07/14/2022, 10:36 AMadamant-finland-54358
07/14/2022, 12:35 PM.yaml
files) for stack configuration settings. Ideally, I would like to use something like AWS SSM or similar to manage all stack config variables.
Does anyone know if this is possible or must I use YAML files for stack config?agreeable-window-77899
07/14/2022, 12:36 PMripe-ram-38792
07/14/2022, 3:10 PMmysterious-battery-54431
07/14/2022, 4:15 PM1
by default, and so I've tried to do this with Pulumi, as there is a CKU resource name...but nothing seems to change, ie. the cluster is still Basic type, and there's no CKU property with the cluster at all.
Has anyone been able to deploy Dedicated Confluent clusters with Pulumi...or even a Standard cluster type, and if so what am I overlooking here?swift-intern-18856
07/14/2022, 5:41 PMreadonly metadata: pulumi.Output<outputs.meta.v1.ObjectMeta>;
on the resource instance. However, on my generated resources, it’s instead pulumi.Output<k8s.types.input.meta.v1.ObjectMeta>
which leads to weird type juggling. everything works, but i’m not able to do something like resource.meta.name
as an input to another resource. For reference, the CRDs i’m working with are the <http://snapshot.storage.k8s.io/v1|snapshot.storage.k8s.io/v1>
which are annoying not part of the standard k8s api although they are standardized (not pulumi’s fault).future-refrigerator-88869
07/15/2022, 8:33 AMaws.autoscaling.Schedule
but it asks for a group and I'm not sure how to reference the spot fleet request.
In the aws console, it looks quite simple. Anyone can point me in the right direction ?victorious-machine-51951
07/15/2022, 8:34 AMpulumi up
on an pulumi-aws project. I created the pulumi project a few months back, it was working well that time and I created a few resources. I am re-visiting the project again, and it throws me this error. What could have went wrong? I only updated the pulumi version.victorious-continent-984
07/15/2022, 9:41 AMerror: Program failed with an unhandled exception:
, instead I want a short and clear message.busy-island-31180
07/15/2022, 6:11 PMlemon-church-28946
07/15/2022, 7:42 PMaws.cloudfront.Distribution
.
◦ Seems the only way to bounce between regions is to set the aws:region
configuration.
▪︎ Please correct me if I'm wrong about setting that value.
• Questions:
◦ Should the aws:region
config be changed between calls to aws.cloudfront.Distribution
, can I expect the subsequent distribution to be deployed in the most resent setting?
◦ If using the stack config to exchange parameters between the local program and the Pulumi program, what is the most effective method of getting a pulumi.automation.Stack
instance in the Pulumi program?
▪︎ I've considered __file__
, pulumi.get_stack()
, and pulumi.automation.select_stack()
but it seems like I'm missing a more obvious method.
▪︎ Edits:
• I'm looking to set new values to the stack's config.
• Can confirm that the pulumi.automation.select_stack()
works.stocky-petabyte-29883
07/15/2022, 11:06 PM