helpful-airport-41202
08/28/2021, 4:33 AMhelpful-airport-41202
08/28/2021, 4:33 AMhelpful-airport-41202
08/28/2021, 4:36 AMlemon-wire-69305
08/30/2021, 12:16 AMconst appEngineWww = new gcp.appengine.StandardAppVersion("appengine-www", {
versionId: pulumi.interpolate`v${wwwCurrentVersion}`,
service: "www",
deleteServiceOnDestroy: false,
runtime: "go115",
deployment: {
zip: {
sourceUrl: pulumi.interpolate`<https://storage.googleapis.com/${bucketDeploys.name}/www/latest.zip>`,
},
},
envVariables: {
DEPLOY_TIME: deployTime
},
automaticScaling: {
maxConcurrentRequests: 10,
minIdleInstances: 0,
maxIdleInstances: 3,
minPendingLatency: "1s",
maxPendingLatency: "5s",
standardSchedulerSettings: {
targetCpuUtilization: 0.5,
targetThroughputUtilization: 0.75,
minInstances: 0,
maxInstances: 10,
},
},
});
This works, however I have to manually migrate traffic to this new version.
Is there a way to have pulumi automatically migrate traffic to the new AppEngine version?modern-napkin-96707
08/31/2021, 12:51 PMplain-potato-84679
09/01/2021, 2:01 PMdocker pull hasura/graphql-engine
docker tag <http://docker.io/hasura/graphql-engine:latest|docker.io/hasura/graphql-engine:latest> <http://gcr.io/my-gcp-project/hasura|gcr.io/my-gcp-project/hasura>
docker push <http://gcr.io/my-gcp-project/hasura|gcr.io/my-gcp-project/hasura>
gcloud container images list-tags <http://gcr.io/my-gcp-project/hasura|gcr.io/my-gcp-project/hasura>
Thanks for your help!average-ability-11166
09/01/2021, 9:53 PMbrash-cricket-30050
09/09/2021, 11:25 AMpulumi up
fails to pull the hosted image due to an authorization issue: [ErrImagePull] unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: <https://cloud.google.com/container-registry/docs/advanced-authentication>
From the Docker command-line pulling a hosted image works fine though, so I feel that I've done the things hinted at in the doc link in the error message.
I feel that the solution might not lie so much in Pulumi, but in my local k8s cluster (am using the k8s cluster provided by Docker Desktop btw).
Any suggestions appreciated, been running around in circles for quite a bit, but haven't figured it out yethelpful-van-82564
09/09/2021, 2:58 PMpermissions=[
"iam.serviceAccountAdmin",
"storage.objectAdmin",
],
with:
googleapi: Error 400: Permission storage.objectAdmin is not valid., badRequest
What am I doing wrong?green-dentist-53234
09/16/2021, 9:29 AMgoogleapi: Error 409: Already Exists: Table PROJECT:pulumi_test.pulumi_test, duplicate
Can you think of anything I could be doing wrong? I'm creating the table this way:
const dataset = new gcp.bigquery.Dataset('pulumi_test', {
datasetId: 'pulumi_test',
friendlyName: 'pulumi_test',
location: 'EU',
defaultTableExpirationMs: 3600000,
labels: {
env: 'default',
},
});
cont table = new gcp.bigquery.Table(tableName, {
datasetId: dataset.datasetId,
tableId: 'pulumi_test',
deletionProtection: false,
timePartitioning: {
type: 'DAY',
},
labels: {
env: 'default',
},
schema: '[{"name":"test","type":"STRING","mode":"NULLABLE","description":""}]',
});
Thank you very much for any advice.astonishing-gpu-28317
09/17/2021, 7:55 PMhundreds-airport-37168
09/26/2021, 8:07 PMambitious-engine-26999
09/27/2021, 7:59 AMdazzling-florist-77127
09/27/2021, 5:31 PMDiagnostics:
gcp:compute:HttpHealthCheck (defaultHttpHealthCheck):
error: 1 error occurred:
* Error creating HttpHealthCheck: googleapi: Error 400: Invalid value for field 'resource.name': 'defaultHttpHealthCheck-b494f35'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)', invalid
helpful-tent-95136
09/29/2021, 8:59 AMgcp.compute.InstanceFromMachineImage
when using it across projects?
For example:
const myInstance = new gcp.compute.InstanceFromMachineImage(
`my-instance`,
{
zone: 'australia-southeast1-a',
project: 'vm-project',
sourceMachineImage: 'projects/image-project/global/machineImages/my-image',
networkInterfaces: [{ network: vpcId, subnetwork: mySubnet }],
}
);
when I do this, it tries to look up sourceMachineImage
from 'projects/vm-project/global/machineImages/my-image'
which of course doesn't exist 😕
Any ideas?ambitious-engine-26999
09/30/2021, 2:18 PMbitter-apple-60976
10/02/2021, 2:46 PMprehistoric-activity-61023
10/06/2021, 5:51 PMprehistoric-activity-61023
10/10/2021, 3:53 PMdry-sugar-63293
10/11/2021, 7:59 AMdry-sugar-63293
10/11/2021, 3:09 PMstatus:
loadBalancer:
ingress:
- ip: XX.XX.XX.XX
any clues?mysterious-zebra-57022
10/11/2021, 8:01 PMmysterious-zebra-57022
10/11/2021, 8:01 PM➜ summa-develop git:(main) ✗ pulumi import gcp:sql/user:User ma-user "summa-develop/summa-5d40e47/muhammad.ali@summaft.com" --debug
Previewing import (summa-develop):
Type Name Plan Info
pulumi:pulumi:Stack summa-develop-summa-develop 1 error; 13 debugs
= └─ gcp:sql:User ma-user import 1 error
Diagnostics:
gcp:sql:User (ma-user):
error: Preview failed: resource 'summa-develop/summa-5d40e47/muhammad.ali@summaft.com' does not exist
pulumi:pulumi:Stack (summa-develop-summa-develop):
debug: Authenticating using DefaultClient...
debug: -- Scopes: [<https://www.googleapis.com/auth/compute> <https://www.googleapis.com/auth/cloud-platform> <https://www.googleapis.com/auth/cloud-identity> <https://www.googleapis.com/auth/ndev.clouddns.readwrite> <https://www.googleapis.com/auth/devstorage.full_control> <https://www.googleapis.com/auth/userinfo.email>]
debug: Authenticating using DefaultClient...
debug: -- Scopes: [<https://www.googleapis.com/auth/compute> <https://www.googleapis.com/auth/cloud-platform> <https://www.googleapis.com/auth/cloud-identity> <https://www.googleapis.com/auth/ndev.clouddns.readwrite> <https://www.googleapis.com/auth/devstorage.full_control> <https://www.googleapis.com/auth/userinfo.email>]
debug: Waiting for state to become: [success]
debug: Terraform is using this identity: <mailto:roarke.gaskill@summaft.com|roarke.gaskill@summaft.com>
debug: Waiting for state to become: [success]
debug: Instantiating Google SqlAdmin client for path <https://sqladmin.googleapis.com/>
debug: Retry Transport: starting RoundTrip retry loop
debug: Retry Transport: request attempt 0
debug: Retry Transport: Stopping retries, last request was successful
debug: Retry Transport: Returning after 1 attempts
debug: Removing SQL User "<mailto:muhammad.ali@summaft.com|muhammad.ali@summaft.com>" because it's gone
error: preview failed
mysterious-zebra-57022
10/11/2021, 8:02 PMdry-sugar-63293
10/12/2021, 11:03 AMfaint-area-23556
10/14/2021, 8:46 PMhallowed-cat-56281
10/22/2021, 6:09 AMacme
) and two stacks (staging
and prod
, on two different GCP accounts). This project is getting relatively big (250 resources), and I was considering creating multiple projects (each with two stacks) - e.g. acme-storage
, acme-compute
Here are my questions:
1. Is this a good approach or am I missing anything?
2. I tried creating one small project (e.g. acme-storage
) but I struggle when trying to export the existing state of the bigger project to import parts of it into the new project and I end-up with resources that need to be “replaced” when doing a pulumi preview
. Is it just a matter of not cleaning up the exported stack file enough/properly before import? Should I even be doing this? Seems dirty.worried-helmet-23171
10/22/2021, 3:32 PMbland-oxygen-26190
10/24/2021, 7:40 PMdazzling-family-13566
10/26/2021, 4:46 PMexpected non-nil error with nil state during Create of urn:pulumi:***…$…$docker:index/remoteImage:RemoteImage::…
dazzling-family-13566
10/26/2021, 4:46 PMexpected non-nil error with nil state during Create of urn:pulumi:***…$…$docker:index/remoteImage:RemoteImage::…