alert-raincoat-81485
09/13/2021, 8:49 PMpulumi up
for the upgrades or refresh.
Previewing update (d2):
Type Name Plan Info
pulumi:pulumi:Stack roletest-d2 1 message
- ├─ aws:iam:RolePolicyAttachment <pulumi_aws.iam.get_policy.AwaitableGetPolicyResult object at 0x106fa1f70> delete
- ├─ aws:iam:RolePolicyAttachment <pulumi_aws.iam.get_policy.AwaitableGetPolicyResult object at 0x106fa1d00> delete
- ├─ aws:iam:RolePolicyAttachment <pulumi_aws.iam.policy.Policy object at 0x106fb7130> delete
- ├─ aws:iam:RolePolicyAttachment <pulumi_aws.iam.get_policy.AwaitableGetPolicyResult object at 0x106fb7040> delete
- ├─ aws:iam:Policy policy-as14 delete
- └─ aws:iam:Role roleas14 delete
Any suggestions?brainy-lion-38675
09/17/2021, 5:30 PMst_keys = pulumi.Output.all([rg.resource_group_name, st.name]).apply(
lambda rg_name, st_name: storage.list_storage_account_keys(
resource_group_name=rg_name,
account_name=st_name
)
)
which fails with
File "/Users/xxx/development/xxx-pulumi-azure/venv/lib/python3.9/site-packages/pulumi/output.py", line 181, in run
transformed: Input[U] = func(value)
TypeError: <lambda>() missing 1 required positional argument: 'st_name'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
What am I doing wrong?gorgeous-minister-41131
09/21/2021, 7:03 PMgorgeous-minister-41131
09/21/2021, 7:07 PMvictorious-exabyte-70545
09/22/2021, 9:36 PMAttributeError: 'NoneType' object has no attribute '__name__'
In [27]: auto.select_stack("stackname", work_dir="/path_to_project")
victorious-exabyte-70545
09/22/2021, 9:36 PMvictorious-exabyte-70545
09/22/2021, 9:36 PM__main__.py
victorious-exabyte-70545
09/22/2021, 9:36 PMvictorious-exabyte-70545
09/22/2021, 9:36 PMvictorious-exabyte-70545
09/22/2021, 10:13 PMAttributeError Traceback (most recent call last)
~/virtuals/sourcescrub/lib/python3.9/site-packages/IPython/core/formatters.py in __call__(self, obj)
700 type_pprinters=self.type_printers,
701 deferred_pprinters=self.deferred_printers)
--> 702 printer.pretty(obj)
703 printer.flush()
704 return stream.getvalue()
~/virtuals/sourcescrub/lib/python3.9/site-packages/IPython/lib/pretty.py in pretty(self, obj)
392 if cls is not object \
393 and callable(cls.__dict__.get('__repr__')):
--> 394 return _repr_pprint(obj, self, cycle)
395
396 return _default_pprint(obj, self, cycle)
~/virtuals/sourcescrub/lib/python3.9/site-packages/IPython/lib/pretty.py in _repr_pprint(obj, p, cycle)
698 """A pprint that just redirects to the normal repr function."""
699 # Find newlines and replace them with p.break_()
--> 700 output = repr(obj)
701 lines = output.splitlines()
702 with p.group():
~/virtuals/sourcescrub/lib/python3.9/site-packages/pulumi/automation/_stack.py in __repr__(self)
189
190 def __repr__(self):
--> 191 return f"Stack(stack_name={self.name!r}, workspace={self.workspace!r}, mode={self._mode!r})"
192
193 def __str__(self):
~/virtuals/sourcescrub/lib/python3.9/site-packages/pulumi/automation/_local_workspace.py in __repr__(self)
102
103 def __repr__(self):
--> 104 return f"{self.__class__.__name__}(work_dir={self.work_dir!r}, program={self.program.__name__}, " \
105 f"pulumi_home={self.pulumi_home!r}, env_vars={self.env_vars!r}, " \
106 f"secrets_provider={self.secrets_provider})"
AttributeError: 'NoneType' object has no attribute '__name__'
victorious-exabyte-70545
09/22/2021, 10:14 PMcrooked-pillow-11944
09/23/2021, 3:38 AMpurple-architect-30534
09/23/2021, 1:41 PMbillions-mechanic-26704
09/24/2021, 12:54 PMdocker.Image
resource they use is not useful since build
parameter is required.
I am seeing this docker.RemoteImage
resource from docker pulumi api, but not sure how to indicate it that the image should be pulled from my container registry I got previously.
The code for getting my container registry is:
container_image = "wmlab"
# GETTING MY CONTAINER REGISTRY
rhdhv_container_registry = azure_native.containerregistry.Registry(
"rhdhvContainerRegistry",
admin_user_enabled=True,
location="westeurope",
network_rule_set=azure_native.containerregistry.NetworkRuleSetArgs(
default_action="Allow",
),
registry_name="rhdhvContainerRegistry",
resource_group_name="genericRG1",
sku=azure_native.containerregistry.SkuArgs(
name="Premium",
),
opts=pulumi.ResourceOptions(protect=True))
# OUTPUT THE CREDENTIALS TO GET THEM
acr_credentials = pulumi.Output.all("genericRG1", rhdhv_container_registry.name).apply(
lambda args: azure_native.containerregistry.list_registry_credentials(
resource_group_name=args[0],
registry_name=args[1]
)
)
admin_username = acr_credentials.username
admin_password = acr_credentials.passwords[0]["value"]
Not sure if perhaps I have to use azure_native.containerregistry.Registry
(here it is) since it has a get
method when an instance of a container registry is gotten, such as is shown at the attached picture.
The point is I don’t know how to use that get method
I am a bit confused about how to pull an image from the existing container registry I got.
Or perhaps does it need to be build and pushed from the same project? I would say should be possible to get an existing one. I need this because the build process is taking place in another repository projecthallowed-teacher-48474
09/28/2021, 4:38 PMwonderful-action-5267
09/29/2021, 1:08 AMpublish
argument? Or is this a use case for creating lambda aliases with that SEMVER value instead?able-doctor-68496
09/30/2021, 5:15 PMprops
argument to the ComponentResource
constructor: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#the-pulumi-python-resource-model-1
My main questions about it are:
• When would I want to pass something to this props
argument?
• What would I pass to that argument?able-doctor-68496
09/30/2021, 5:19 PMComponentResource
that I’ve created. I’m passing it like so:
def __init__(..., namespace: Namespace, ...):
super().__init__(
...,
props={'namespace': namespace},
...
)
Is that the correct way to use props
? My thinking was that this would let the Pulumi “engine” know that there is an ordering requirement between the namespace and my ComponentResource
. Is that how it works? If not, then what are props
for?billowy-church-13349
09/30/2021, 7:40 PMvsphere.VirtualMachine
exists network_interfaces, and disk params, bug vsphere.get_content_library_item
does not provide those info.crooked-pillow-11944
10/01/2021, 1:30 PMable-doctor-68496
10/01/2021, 4:13 PMprops
argument to the ComponentResource
constructor: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#the-pulumi-python-resource-model-1
My main questions about it are:
• When would I want to pass something to this props
argument?
• What would I pass to that argument?
For example, currently I’m passing a Kubernetes namespace to a “parent” ComponentResource
that I’ve created. I’m passing it like so:
def __init__(..., namespace: Namespace, ...):
super().__init__(
...,
props={'namespace': namespace},
...
)
Is that the correct way to use props
? My thinking was that this would let the Pulumi “engine” know that there is an ordering requirement between the namespace and my ComponentResource
. Is that how it works? If not, then what are props
for?crooked-pillow-11944
10/04/2021, 1:03 AMagreeable-motherboard-1279
10/04/2021, 9:55 AMshy-bird-55689
10/04/2021, 9:28 PMapply
and Output.concat
anyone got any pointers?
package_dash_image = Image('package-dash-image',
build=DockerBuild(args={'BUCKET': "bucket_name",
'ACCESS_KEY_ID': package_dash_user_access_key.id,
'SECRET_ACCESS_KEY': package_dash_user_access_key.secret
},
context='source/services/package-dash/',
),
image_name=package_dash_image_name,
registry=package_dash_repository_info,
)
alert-glass-49407
10/06/2021, 8:22 PMnutritious-shampoo-16116
10/07/2021, 10:20 AMshy-bird-55689
10/07/2021, 8:42 PMup
?
aws:lambda:EventSourceMapping (md5-source-event):
error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:45393: connect: connection refused"
Have it for a couple of other resources that were to be updated as wellfresh-actor-58531
10/08/2021, 5:42 AMfresh-actor-58531
10/08/2021, 5:43 AMfresh-actor-58531
10/08/2021, 5:44 AMfresh-actor-58531
10/08/2021, 5:44 AM