broad-house-79544
11/28/2022, 6:43 AMbrave-wall-78117
11/28/2022, 8:05 AM./redis/redis.conf
is within the Pulumi project.
I tried using `HostPath = $"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\redis\redis.conf",`but it exceeds the max path length of 255 and doesn't reach out that part.
docker:index:Container (RedisContainer):
error: docker:index/container:Container resource 'RedisContainer' has a problem: './redis/redis.conf' must be an absolute path: './redis/redis.conf' must be an absolute path. Examine values at 'Container.Volumes'.
return await Deployment.RunAsync(() =>
{
var stackName = Deployment.Instance.StackName;
const string redisHost = "redis";
// Get configuration
var config = new Pulumi.Config();
var redisPort = config.RequireInt32("redisPort");
// Create network
var network = new Network("network", new NetworkArgs
{
Name = $"services-{stackName}"
});
// Find the latest redis image
var redisImage = new RemoteImage("RedisImage", new RemoteImageArgs
{
Name = "redis:alpine"
});
// Start a container
var redisContainer = new Container("RedisContainer", new ContainerArgs
{
Name = $"redis-{stackName}",
Image = redisImage.Latest,
Ports = new InputList<ContainerPortArgs>
{
new ContainerPortArgs
{
Internal = redisPort,
External = redisPort
}
},
Command = new InputList<string>
{
"redis-server /usr/local/etc/redis/redis.conf --requirepass mypassword"
},
Volumes = new InputList<ContainerVolumeArgs>
{
new ContainerVolumeArgs
{
HostPath = "./redis/redis.conf",
ContainerPath = "/usr/local/etc/redis/redis.conf"
}
},
NetworksAdvanced = new InputList<ContainerNetworksAdvancedArgs>
{
new ContainerNetworksAdvancedArgs
{
Name = network.Name,
Aliases = new[]
{
redisHost
}
}
},
});
// Export
return new Dictionary<string, object?>
{
["redisContainer"] = redisContainer.Name
};
});
mysterious-apartment-62241
11/28/2022, 8:46 AMechoing-dress-72742
11/28/2022, 8:51 AMabundant-telephone-90024
11/28/2022, 8:56 AMbroad-house-79544
11/28/2022, 2:02 PMpulumi stack export...
, and then tried to import it, but getting this error:
error: this command requires a stack, but there are none
broad-house-79544
11/28/2022, 2:03 PMsalmon-hairdresser-65532
11/28/2022, 4:21 PMbrave-wall-78117
11/28/2022, 9:08 PMcurved-hair-46639
11/29/2022, 6:32 AMspin_venv()
function to prepare a virtual environment.colossal-vr-62639
11/29/2022, 7:20 AMpulumi-base
docker image for my pulumi workloads with my dotnet based pulumi programs.
From and including the image tagged 3.47.0
, i'm getting a
error: could not find `dotnet` on the $PATH: exec: "dotnet": executable file not found in $PATH
error: failed to load language plugin dotnet: could not read plugin [/pulumi/bin/pulumi-language-dotnet] stdout: EOF
Whereas with the image tagged 3.46.0
, i'm not seeing it.
If I use pulumi-dotnet
it does work, my curiosity is in why the pulumi-base
worked previously and stopped working.echoing-dress-72742
11/29/2022, 8:26 AMclever-painter-96148
11/29/2022, 10:22 AMpkg:index:MyComponent
.
Should I replace pkg
with my package name and index
with a module name?dazzling-television-62903
11/29/2022, 10:32 AMmost-mouse-38002
11/29/2022, 10:53 AMprehistoric-laptop-47240
11/29/2022, 12:04 PMpulumi up
when everything else is ready to have it working.
I'm using it exactly like in the examples. Any idea ? :s. All I saw is that if i'm pulling an image and not building it, everythings seems to work fine...dry-potato-52542
11/29/2022, 7:08 PMpulumi stack tag set
magnificent-motherboard-76110
11/29/2022, 9:32 PMicy-controller-6092
11/29/2022, 10:34 PMfierce-dinner-64337
11/29/2022, 10:42 PMmany-helicopter-89037
11/29/2022, 11:03 PMrhythmic-branch-12845
11/30/2022, 3:00 AMclever-soccer-98174
11/30/2022, 3:05 AMaws.lambda.CallbackFunction
{
"errorType": "Error",
"errorMessage": "Cannot find module 'tslib'\nRequire stack:\n- /var/task/__index.js\n- /var/runtime/index.mjs",
"code": "MODULE_NOT_FOUND",
"requireStack": [
"/var/task/__index.js",
"/var/runtime/index.mjs"
],
"stack": [
"Error: Cannot find module 'tslib'",
"Require stack:",
"- /var/task/__index.js",
"- /var/runtime/index.mjs",
" at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)",
" at Function.Module._load (node:internal/modules/cjs/loader:778:27)",
" at Module.require (node:internal/modules/cjs/loader:1005:19)",
" at require (node:internal/modules/cjs/helpers:102:18)",
" at /var/task/__index.js:5:21",
" at Runtime.__f0 [as handler] (/var/task/__index.js:14:6)",
" at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1089:29)"
]
}
white-chef-55657
11/30/2022, 9:27 AMfaint-article-37196
11/30/2022, 10:01 AMproud-city-30820
11/30/2022, 10:28 AMclever-soccer-98174
11/30/2022, 11:00 AMimport * as aws from "@pulumi/aws";
import * as apigateway from "@pulumi/aws-apigateway";
// Create a Lambda Function
const helloHandler = new aws.lambda.CallbackFunction("hello-handler", {
callback: async (ev, ctx) => {
return {
statusCode: 200,
body: "Hello, API Gateway!",
};
},
});
// Define an endpoint that invokes a lambda to handle requests
const api = new apigateway.RestAPI("api", {
routes: [
{
path: "/",
method: "GET",
eventHandler: helloHandler,
},
],
});
export const url = api.url;
But unfortunately I’m stucked with this error :
error: update failed
aws:apigateway:RestApi (api):
error: 1 error occurred:
* creating urn:pulumi:dev::meeting-integrations::aws-apigateway:index:RestAPI$aws:apigateway/restApi:RestApi::api: 1 error occurred:
* error creating API Gateway specification: BadRequestException: Errors found during import:
Unable to put integration on 'GET' for resource at path '/': Invalid ARN specified in the request
Do you have any knowledge about this issue?millions-parrot-88279
11/30/2022, 2:34 PMmany-helicopter-89037
11/30/2022, 4:43 PMfamous-eve-66520
11/30/2022, 6:20 PMfamous-eve-66520
11/30/2022, 6:20 PMvariables:
chart-hash:
fn::invoke:
function: command:local:run
arguments:
command: find ../argocd/bootstrap -type f | sort | xargs openssl sha256 | openssl sha256
And then I pass it to the helm chart as an unused value:
values:
chartHash: ${chart-hash}
many-telephone-49025
11/30/2022, 6:53 PM