mysterious-apartment-62241
10/19/2022, 3:47 PMgifted-fall-44000
10/19/2022, 5:21 PMquick-wolf-8403
10/19/2022, 5:41 PMpulumi
command. Is there a way to disable warnings? I don't want warning: A new version of Pulumi is available...
printed over and over. I could just redirected stderr to null, but I'd rather show other errors. (Tried --verbose 0
and --non-interactive
already.)kind-country-41992
10/19/2022, 5:49 PMmysterious-battery-54431
10/19/2022, 10:13 PMversion_retention_period
for GCP Spanner as per here https://www.pulumi.com/registry/packages/gcp/api-docs/spanner/database/? When we try to set it, we get back the response TypeError: _internal_init() got an unexpected keyword argument 'version_retention_period'
wonderful-finland-26211
10/19/2022, 10:46 PMTraceback (most recent call last):
File "/home/ubuntu/.pulumi/bin/pulumi-language-python-exec", line 14, in <module>
import pulumi
ModuleNotFoundError: No module named 'pulumi'
It looks like the Pulumi SDK has not been installed. Have you run pip install?
If you are running in a virtualenv, you must run pip install -r requirements.txt from inside the virtualenv.
error: an unhandled error occurred: Program exited with non-zero exit code: 1
I use the setup.py install requirements.txt. Below is the code. (pip install .)
/usr/bin/python3 -V
Python 3.9.15
#!/usr/bin/python3
import os
import setuptools
packages_path = os.path.join(os.getcwd(), "_install")
with open(os.path.join(os.getcwd(), "_install", "requirements.txt")) as f:
required = f.read().splitlines()
setuptools.setup(
name="deployment",
version="1.4.1",
author_email="email address",
description="service to create clusters and other common infrastructure",
url="URL",
include_package_data=True,
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
install_requires=[
required,
],
extras_require={
"dev": [
f"common_variables[dev] "
f"@ <file://localhost/{packages_path}/common_variables-1.4.5.tar.gz#egg=common_variables>",
],
}
)
pip freeze
Arpeggio==1.10.2
attrs==19.3.0
Automat==0.8.0
blinker==1.4
certifi==2019.11.28
chardet==3.0.4
Click==7.0
cloud-init==22.3.4
colorama==0.4.3
configobj==5.0.6
constantly==15.1.0
cryptography==2.8
dbus-python==1.2.16
deployment==1.4.1
dill==0.3.5.1
distro==1.4.0
distro-info===0.23ubuntu1
ec2-hibinit-agent==1.0.0
entrypoints==0.3
grpcio==1.47.0
httplib2==0.14.0
hyperlink==19.0.0
idna==2.8
importlib-metadata==1.5.0
incremental==16.10.1
Jinja2==2.10.1
jsonpatch==1.22
jsonpointer==2.0
jsonschema==3.2.0
keyring==18.0.1
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
MarkupSafe==1.1.0
more-itertools==4.2.0
netifaces==0.10.4
oauthlib==3.1.0
parver==0.3.1
pexpect==4.6.0
protobuf==4.21.7
pulumi==3.43.1
pulumi-aws==5.16.2
pulumi-docker==3.4.1
pyasn1==0.4.2
pyasn1-modules==0.2.1
PyGObject==3.36.0
PyHamcrest==1.9.0
PyJWT==1.7.1
pymacaroons==0.13.0
PyNaCl==1.3.0
pyOpenSSL==19.0.0
pyrsistent==0.15.5
pyserial==3.4
python-apt==2.0.0+ubuntu0.20.4.8
python-debian===0.1.36ubuntu1
python-dotenv==0.21.0
PyYAML==6.0
requests==2.22.0
requests-unixsocket==0.2.0
SecretStorage==2.3.1
semver==2.13.0
service-identity==18.1.0
simplejson==3.16.0
six==1.14.0
sos==4.3
ssh-import-id==5.10
systemd-python==234
Twisted==18.9.0
ufw==0.36
urllib3==1.25.8
wadllib==1.3.3
zipp==1.0.0
zope.interface==4.7.1
early-intern-90238
10/20/2022, 1:29 AMlittle-cartoon-10569
10/20/2022, 3:30 AMsparse-intern-71089
10/20/2022, 4:10 AMbland-tailor-50336
10/20/2022, 4:11 AMbland-tailor-50336
10/20/2022, 4:28 AMripe-russia-4239
10/20/2022, 11:42 AMmysterious-apartment-62241
10/20/2022, 2:24 PMtall-crowd-93084
10/20/2022, 3:45 PMtf2pulumi
code...
Even the example code here: https://www.pulumi.com/registry/packages/hcloud/api-docs/servernetwork/ isn't working.
Details in the thread so as not to pollute the channel
edit, sorry - I've just seen greetbot's note about #typescriptgifted-fall-44000
10/20/2022, 4:32 PMlate-smartphone-64073
10/20/2022, 5:46 PMrapid-eve-24229
10/20/2022, 8:04 PMpulumi==3.43.1
pulumi-aws==5.18.0
pulumi-docker==3.4.1
python-dotenv==0.21.0
So, anyway, I was trying to deploy my stack with the updated versions.
I received an error message "name" is deprecated and replaced with "db_name" in aws.rds.Instance
So, I changed "name" to "db_name"
Deployed.
Pulumi deleted my old database and backups, and created a new database with all data lost.rapid-eve-24229
10/20/2022, 8:13 PMpulumi==3.43.1
pulumi-aws==5.18.0
pulumi-docker==3.4.1
python-dotenv==0.21.0
Deployed
Failure = " no digest available for image"most-laptop-7275
10/20/2022, 8:40 PMpulumi up
to perform an initial deployment: installing dependencies via '/home/ec2-user/PulumiPoC/venv/bin/python -m pip install -r requirements.txt': signal: killed.many-spring-73557
10/20/2022, 8:41 PMimport * as aws from "@pulumi/aws";
export function newRdsCpu(...) {
new aws.cloudwatch.MetricAlarm(...);
}
I am hoping to import it with something like import * as alarms from "../../pulumi-shared/alarms";
but when I do, I get Cannot find module '@pulumi/aws'
If I add a package.json
to pulumi-shared
with @pulumi/aws
in it then it works… but I don’t really want that file as an independent library. It should use the @pulumi/aws
of whatever library is calling it.
Does anyone have any suggestions for how to proceed? I am searching lots of TypeScript on how to import files from outside the root dir, but so far not having any luck.most-laptop-7275
10/20/2022, 8:42 PMmost-laptop-7275
10/20/2022, 8:43 PMmost-laptop-7275
10/20/2022, 8:57 PMfast-flower-40813
10/20/2022, 11:57 PMunable to enlist in git repo: unable to clone repo: reference delta not found.
Does anyone have the same error or is there a workaround it?
Thank youdazzling-gigabyte-42983
10/21/2022, 8:25 AMvar serverApplication = new AzureAD.Application($"{prefix}-{appName}", new AzureAD.ApplicationArgs
{
SignInAudience = "AzureADandPersonalMicrosoftAccount",
SinglePageApplication = new ApplicationSinglePageApplicationArgs
{
RedirectUris = "<http://localhost:4200/>"
},
DisplayName = "Azure AD Example Server",
IdentifierUris =
{
$"api://{prefix}-{appName}"
},
Api = new AzureAD.Inputs.ApplicationApiArgs
{
RequestedAccessTokenVersion = 2,
},
});
I'm trying to delegate the token to another backend API.
Thankscreamy-toothbrush-23183
10/21/2022, 2:49 PMlate-smartphone-64073
10/21/2022, 3:28 PMlate-smartphone-64073
10/21/2022, 3:31 PMlate-smartphone-64073
10/21/2022, 3:33 PMwhite-rain-67342
10/21/2022, 4:36 PMkable-db-rdsf41604a
before deleting the subnet group?
Diagnostics:
aws:rds:SubnetGroup (kable-db-sng):
error: deleting urn:pulumi:staging::kable-infrastructure::custom:resource:DB$aws:rds/subnetGroup:SubnetGroup::kable-db-sng: 1 error occurred:
* deleting RDS Subnet Group (kable-db-sng-9841ed7): InvalidDBSubnetGroupStateFault: Cannot delete the subnet group 'kable-db-sng-9841ed7' because at least one database instance: kable-db-rdsf41604a is still using it.
status code: 400, request id: 4a24205a-a1d9-4586-a4a5-a1aa1e13173f
pulumi:pulumi:Stack (kable-infrastructure-staging):
error: update failed
white-rain-67342
10/21/2022, 4:36 PMkable-db-rdsf41604a
before deleting the subnet group?
Diagnostics:
aws:rds:SubnetGroup (kable-db-sng):
error: deleting urn:pulumi:staging::kable-infrastructure::custom:resource:DB$aws:rds/subnetGroup:SubnetGroup::kable-db-sng: 1 error occurred:
* deleting RDS Subnet Group (kable-db-sng-9841ed7): InvalidDBSubnetGroupStateFault: Cannot delete the subnet group 'kable-db-sng-9841ed7' because at least one database instance: kable-db-rdsf41604a is still using it.
status code: 400, request id: 4a24205a-a1d9-4586-a4a5-a1aa1e13173f
pulumi:pulumi:Stack (kable-infrastructure-staging):
error: update failed
little-cartoon-10569
10/21/2022, 7:15 PM