proud-umbrella-2459
12/13/2022, 8:52 PMnew aws.glue.Connection("iceberg", { connectionType: "MARKETPLACE", name: "Apache Iceberg Connector for Glue 3.0" })
but it doesn't work... Thanks in advance for any help.cuddly-computer-18851
12/14/2022, 1:10 AMinstanceRefresh: {
strategy: "Rolling",
preferences: {
minHealthyPercentage: 50,
},
triggers: ["tag"],
},
is there a way to get Pulumi to wait until the refresh is complete?happy-garage-50771
12/14/2022, 5:02 AMpulumi import
for the Pulumi Automation API, specifically in Typescript?damp-cartoon-25024
12/14/2022, 9:28 AMpulumi config set azure:subscriptionId 12345678-1234-1234-1234-123456789abc
And using it in code:
_currentId = config.require("azure:subscriptionId");
Which fails
error: Missing required configuration variable 'app:azure:subscriptionId'
please set a value using the command `pulumi config set app:azure:subscriptionId <value>`
Where did the app:
come from?
The command it suggests fails as well:
~#@❯ pulumi config set app:azure:subscriptionId 12345678-1234-1234-1234-123456789abc
error: invalid configuration key: could not parse app:azure:subscriptionId as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
What am I missing?little-journalist-4778
12/14/2022, 9:32 AMmammoth-journalist-45153
12/14/2022, 10:58 AM[1] 28272 killed pulumi up
mammoth-journalist-45153
12/14/2022, 10:58 AMwide-dress-96388
12/14/2022, 12:01 PMtall-lion-84030
12/14/2022, 2:15 PMenough-sunset-73069
12/14/2022, 3:24 PMdry-keyboard-94795
12/14/2022, 4:00 PMup
with --target
specified, it also runs pending imports of resources instead of just creating the targeted resource.
Is this expected?
Targeted resource is new, imported resource is using the import
directive on ResourceOptions.wide-dress-96388
12/14/2022, 8:15 PMStatus page doesn’t mention any incident?
delightful-napkin-38557
12/14/2022, 8:17 PMgentle-restaurant-32005
12/14/2022, 8:21 PMgentle-restaurant-32005
12/14/2022, 8:22 PMgentle-restaurant-32005
12/14/2022, 8:22 PMgentle-restaurant-32005
12/14/2022, 8:23 PMgentle-restaurant-32005
12/14/2022, 8:23 PMrefined-father-93093
12/15/2022, 6:32 AMalert-zebra-27114
12/15/2022, 9:51 AMfuture-window-78560
12/15/2022, 1:16 PMglamorous-answer-86536
12/15/2022, 1:47 PMcode=FileArchive(f"/tmp/{archive_folder}")
. On pulumi preview
this fails as the folder does not exist as it is only created on pulumi up
. How can this be solved in a Pulumi way? Cheers!proud-pizza-80589
12/15/2022, 4:45 PMmillions-parrot-88279
12/15/2022, 5:22 PMwhen i do pulumi preview for stack , all resources created but it come issue that say
millions-parrot-88279
12/15/2022, 5:23 PMDiagnostics:
pulumi😛ulumi:Stack (projects1-dev):
error: Program failed with an unhandled exception:
Traceback (most recent call last):
File "C:\pulumi\bin\pulumi-language-python-exec", line 192, in <module>
loop.run_until_complete(coro)
File "C:\Users\Mohammedbanabila\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\stack.py", line 126, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\stack.py", line 51, in run_pulumi_func
await wait_for_rpcs()
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\stack.py", line 110, in wait_for_rpcs
raise exception
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 523, in do_register
resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ)
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 124, in prepare_resource
serialized_props = await rpc.serialize_properties(
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 208, in serialize_properties
result = await serialize_property(
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 376, in serialize_property
is_known = await output._is_known
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\output.py", line 100, in is_value_known
return await is_known and not contains_unknowns(await future)
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 523, in do_register
resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ)
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 124, in prepare_resource
serialized_props = await rpc.serialize_properties(
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 208, in serialize_properties
result = await serialize_property(
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 425, in serialize_property
return {
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 426, in <dictcomp>
k: await serialize_property(
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 260, in serialize_property
element_type = _get_list_element_type(typ)
File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 161, in _get_list_element_type
raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'fierce-ability-58936
12/15/2022, 7:27 PMpulumi import
but that doesn't 100% fit either. We can construct an import json from the terraform file, but making the right hierarchy will be tricky.
3. None of the above is scalable!
So I was thinking: is there an easy way to modify Pulumi in the following way:
1. Add another flag to pulumi import
, say --import-existing
or something.
2. Pulumi will have all the information about the resource hierarchy and it should be able to query for existing resources.
3. If existing resources match the code (by id?), import them into the state. Those resources don't have to be a perfect match.
Does it make sense? Does it sound hard to implement?incalculable-spring-4592
12/16/2022, 8:13 AMquick-night-9217
12/16/2022, 8:55 AMadamant-football-558
12/16/2022, 10:15 AMpulumi up
has flat --parallel
available. Does it make sense to use component resources with this flag set to 3-4 to speed up the deployment of the resources?
Currently, we are not using the Component Resources, but I'm wondering if this could help optimize deployment time. At the moment, it's around 8 minutes. I wish to cut it by at least a few minutes because, soon, we would like to set gitops pipelines.dry-keyboard-94795
12/16/2022, 11:51 AMstack import
with resources from google-native
dry-keyboard-94795
12/16/2022, 11:51 AMstack import
with resources from google-native
error: could not deserialize deployment: [400] Message authentication failed
--logtostderr -v=9
I1216 11:54:58.164067 119238 sink.go:153] defaultSink::Error(error: could not deserialize deployment: [400] Message authentication failed)
error: could not deserialize deployment: [400] Message authentication failed
many-telephone-49025
12/16/2022, 12:23 PMdry-keyboard-94795
12/16/2022, 12:23 PMmany-telephone-49025
12/16/2022, 12:24 PMdry-keyboard-94795
12/16/2022, 12:25 PMmany-telephone-49025
12/16/2022, 12:25 PMdry-keyboard-94795
12/16/2022, 12:25 PMcompute.BackendBucket
resource.
Was going to change it to using gcp classic, however we need to set a CDN policy, which is blocked by thismany-telephone-49025
12/16/2022, 12:27 PMdry-keyboard-94795
12/16/2022, 12:33 PMimport pulumi as p
from pulumi_gcp import compute, storage
from pulumi_google_native.compute import beta as compute_beta
bucket = storage.Bucket(
"bucket",
location="EU",
cors=[
storage.BucketCorArgs(
methods=["GET"],
origins=["*"],
)
],
storage_class="MULTI_REGIONAL",
uniform_bucket_level_access=True,
)
compute_beta.BackendBucket(
"backend-bucket",
bucket_name=bucket.name,
enable_cdn=True,
compression_mode=compute_beta.BackendBucketCompressionMode.AUTOMATIC,
cdn_policy=compute_beta.BackendBucketCdnPolicyArgs(
cache_mode=compute_beta.BackendBucketCdnPolicyCacheMode.USE_ORIGIN_HEADERS,
),
)
Forgot that it's the Beta variant of BackendBucket (compression wasn't GA at the time)--show-secrets
in the export