eager-musician-93270
12/21/2021, 12:25 PMindex.ts
with my Pulumi code to each of the two sets of stacks?wide-london-37434
12/21/2021, 9:01 PMpulumi up
? Pulumi clearly has some capabilities here since it saves the commit hash to the service, but I can't find any leads in terms of which package that stuff might live infancy-egg-38667
12/21/2021, 9:22 PMfancy-egg-38667
12/21/2021, 9:23 PMfancy-egg-38667
12/21/2021, 9:23 PMfancy-egg-38667
12/21/2021, 10:12 PMfancy-egg-38667
12/21/2021, 10:14 PMadorable-match-24864
12/21/2021, 11:24 PMfancy-egg-38667
12/21/2021, 11:51 PM⯠pulumi import aws:autoscaling/group:Group platformCoreEcsCluster platform-dev
Previewing import (dev)
View Live: [redacted]
Type Name Plan Info
pulumi:pulumi:Stack pulumi-experiment-dev 1 error
= āā aws:autoscaling:Group platformCoreEcsCluster import 4 errors
Diagnostics:
pulumi:pulumi:Stack (pulumi-experiment-dev):
error: preview failed
aws:autoscaling:Group (platformCoreEcsCluster):
error: aws:autoscaling/group:Group resource 'platformCoreEcsCluster' has a problem: Invalid combination of arguments: "launch_configuration": one of `launch_configuration,launch_template,mixed_instances_policy` must be specified. Examine values at 'Group.LaunchConfiguration'.
error: aws:autoscaling/group:Group resource 'platformCoreEcsCluster' has a problem: Invalid combination of arguments: "launch_template": one of `launch_configuration,launch_template,mixed_instances_policy` must be specified. Examine values at 'Group.LaunchTemplate'.
error: aws:autoscaling/group:Group resource 'platformCoreEcsCluster' has a problem: Invalid combination of arguments: "mixed_instances_policy": one of `launch_configuration,launch_template,mixed_instances_policy` must be specified. Examine values at 'Group.MixedInstancesPolicy'.
error: Preview failed: one or more inputs failed to validate
Anyone else ever seen this?many-apartment-92429
12/22/2021, 3:49 PMimport { LocalProgramArgs, LocalWorkspace } from "@pulumi/pulumi/automation";
import * as github from "@pulumi/github";
const repo2 = new github.Repository(
"mytest",
{
description: "mytest",
visibility: "internal",
},
);
console.log("Created repo2 repository");
bit if fails with:
yarn ts-node scripts/repos/simple_script.ts
yarn run v1.22.17
$ /home/seo_infra/node_modules/.bin/ts-node scripts/repos/simple_script.ts
/home/seo_infra/node_modules/@pulumi/pulumi/runtime/settings.js:123
throw new Error("Program run without the Pulumi engine available; re-run using the `pulumi` CLI");
^
Error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
at requireTestModeEnabled (/home/seo_infra/node_modules/@pulumi/pulumi/runtime/settings.js:123:15)
at Object.getMonitor (/home/seo_infra/node_modules/@pulumi/pulumi/runtime/settings.js:216:13)
at Object.registerResource (/home/seo_infra/node_modules/@pulumi/pulumi/runtime/resource.js:213:32)
at new Resource (/home/seo_infra/node_modules/@pulumi/pulumi/resource.js:217:24)
at new CustomResource (/home/seo_infra/node_modules/@pulumi/pulumi/resource.js:309:9)
at new Repository (/home/seo_infra/node_modules/@pulumi/repository.ts:305:9)
at Object.<anonymous> (/home/seo_infra/scripts/repos/simple_script.ts:39:15)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Module.m._compile (/home/seo_infra/node_modules/ts-node/src/index.ts:1310:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
Do you have any hints why it fails and how to make it working? Googling a good half of the internet did not helpā¦
Adding a local stack with configuration also did not change anything:
const stack = await LocalWorkspace.createOrSelectStack(args, {
projectSettings: {
name: "infra",
runtime: "nodejs",
backend: {
url: `s3://${BUCKET_NAME}`,
},
},
secretsProvider,
stackSettings: {
[args.stackName]: {
secretsProvider,
},
},
});
The error is still the same. Thank you.fancy-egg-38667
12/22/2021, 11:59 PMsparse-butcher-73713
12/23/2021, 8:08 AMable-honey-93860
12/24/2021, 12:29 AM"error: constructing secrets manager of type āpassphraseā: unable to find either āPULUMI_CONFIG_PASSPHRASEā or āPULUMI_CONFIG_PASSPHRASE_FILEā when trying to access the Passphrase Secrets Provider; please ensure one of these environments barebones is set to allow the operation to continueā
I have tried a number of ways to āsetā the passphrase but no luck. First tried setting it locally in my windows environment variables list and then tried pulumi config set āsecret PULUMI_CONFIG_PASSPHRASE āTestā
And yes āTestā is the passphrase I used when running pulumi up, just trying to understand how it's all working then I would use something more secure.
Along with setting it up before running pulumi up by running pulumi stack unit dev āsecrets-provider passphrase
It just continuously gives me the error above after I run any subsequent commands after a successful pulumi up. For instance after creating the bucket I run pulumi stack output bucket_name
and then get the same passphrase error above. I have to be missing something super simple lol. I have deleted everything and redid it multiple times but no luck. I just can't find anything on my own so I appreciate any help!ancient-shampoo-2049
12/28/2021, 1:19 AMsource_credential = aws.codebuild.SourceCredential(resource_name="xxx",
auth_type="PERSONAL_ACCESS_TOKEN",
server_type="GITHUB",
token="****")
is the Python I'm using (prior to creating the code build project). Any pointers or references I can look at?aloof-leather-66267
12/28/2021, 4:17 PMacoustic-church-60550
12/29/2021, 10:01 PMacoustic-boots-88794
12/30/2021, 9:24 PMquaint-megabyte-77026
12/31/2021, 11:08 PMfull-sugar-56177
01/01/2022, 5:33 PMpulumi:providers:pulumi
. Does these resources count towards pricing? If so, having an equivalent structure as terragrunt with multiple Projects and stacks per application, it will cost me much more than using a single Project architecture.swift-ambulance-7102
01/02/2022, 8:41 PMsticky-exabyte-94099
01/03/2022, 12:15 PMplain-potato-84679
01/04/2022, 10:16 AMerror: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin\pulumi-language-python-exec", line 107, in <module>
loop.run_until_complete(coro)
File "C:\Users\user\Anaconda3\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi\runtime\stack.py", line 110, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi\runtime\stack.py", line 45, in run_pulumi_func
await wait_for_rpcs()
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi\runtime\stack.py", line 94, in wait_for_rpcs
raise exception
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi\output.py", line 161, in run
value = await self._future
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi\output.py", line 161, in run
value = await self._future
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi\output.py", line 182, in run
transformed: Input[U] = func(value)
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi_docker\image.py", line 254, in <lambda>
lambda args: get_image_data(_ImageArgs(*args))
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi_docker\image.py", line 237, in get_image_data
image_args.skip_push,
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi_docker\docker.py", line 243, in build_and_push_image
build_result = build_image(base_image_name, path_or_build, log_resource, cache_from)
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi_docker\docker.py", line 437, in build_image
docker_build(image_name, build, log_resource, cache_from)
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi_docker\docker.py", line 491, in docker_build
return run_command_that_must_succeed("docker", build_args, log_resource, env=build.env)
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi_docker\docker.py", line 599, in run_command_that_must_succeed
cmd, args, log_resource, report_full_command_line, False, stdin, env)
File "C:\Users\user\OneDrive - MZ KG\Work\__Projekte\Python\pulumi_infrastructure\gcp_vm_dagster\venv\lib\site-packages\pulumi_docker\docker.py", line 661, in run_command_that_can_fail
stderr=subprocess.PIPE, stdin=subprocess.PIPE, encoding="utf-8")
File "C:\Users\user\Anaconda3\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\user\Anaconda3\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
error: an unhandled error occurred: Program exited with non-zero exit code: 1
I can't make much of the output. Maybe you have an idea?witty-honey-13693
01/05/2022, 10:06 PMflaky-librarian-26344
01/07/2022, 2:55 AMsticky-exabyte-94099
01/07/2022, 9:00 AMvar redis = new AzureNative.Cache.Redis("redisCacheBeinni",
should be var redis = new AzureNative.Cache.Redis("redis",
.. going to try that...
[edit2] ok that solved it.. also it took for ever to create this resource and I think I gave up last time before it finished and everything went south from there...
var redis = new AzureNative.Cache.Redis("redisCacheBeinni", new AzureNative.Cache.RedisArgs
{
EnableNonSslPort = true,
Location = ResourceGroup.Apply(t => t.Location),
MinimumTlsVersion = "1.2",
Name = "redisCacheBeinni",
RedisConfiguration = new AzureNative.Cache.Inputs.RedisCommonPropertiesRedisConfigurationArgs
{
MaxmemoryPolicy = "allkeys-lru",
},
ResourceGroupName = ResourceGroup.Apply(t => t.Name),
Sku = new AzureNative.Cache.Inputs.SkuArgs
{
Capacity = 1,
Family = "C",
Name = "Standard",
},
Tags =
{
{ "environment", StackName },
},
});
this is the error...
error: cannot create already existing resource '/subscriptions/0e96.../resourceGroups/beinni-rg52d042de/providers/Microsoft.Cache/redis/redisCacheBeinni'
Shouldn“t this be re-runnable? If I need to run this once and then import this resource (don“t know how) that sounds like a bug.. or at least not what I would expect
I also see that all other resources are created with a postfix but redis is just created as redisCacheBeinni
in the portal..
And btw its never created in the Pulumi portal either...quaint-psychiatrist-60421
01/08/2022, 6:33 AMinstances.append(aws.ec2.Instance(<various_params>))
for creating instances, and return instances
. I would then like to run ansible (either through subprocess.run() or ansible imports) against newly created resources. This list always contains the total resources, new or existing.sticky-exabyte-94099
01/08/2022, 1:35 PMsticky-exabyte-94099
01/09/2022, 3:47 PMmost-lighter-95902
01/10/2022, 5:08 AMchilly-plastic-75584
01/10/2022, 7:28 PMchilly-plastic-75584
01/10/2022, 7:28 PMbillowy-army-68599
01/10/2022, 7:52 PMchilly-plastic-75584
01/10/2022, 7:53 PMbillowy-army-68599
01/10/2022, 7:54 PMchilly-plastic-75584
01/10/2022, 7:55 PMbillowy-army-68599
01/10/2022, 7:58 PMchilly-plastic-75584
01/10/2022, 8:01 PMbillowy-army-68599
01/10/2022, 8:27 PMchilly-plastic-75584
01/10/2022, 9:03 PMbillowy-army-68599
01/10/2022, 9:41 PMchilly-plastic-75584
01/10/2022, 10:55 PMpulumi up
. refresh/preview don't seem to render the yaml., pulumi.Provider(renderProvider))
and i think this solves the issuebillowy-army-68599
01/11/2022, 5:10 PMchilly-plastic-75584
01/11/2022, 7:06 PMonlyyaml: true
and when I flip it seems to be correctly identifying the change.billowy-army-68599
01/11/2022, 7:25 PMchilly-plastic-75584
01/12/2022, 6:16 PMbillowy-army-68599
01/12/2022, 6:28 PM