straight-cartoon-24485
08/25/2021, 7:23 PMquaint-air-36266
08/26/2021, 1:12 AMdelete-replaced
means?late-energy-66663
08/26/2021, 9:23 AMpackage main
import (
"<http://github.com/pulumi/pulumi-eks/sdk/go/eks|github.com/pulumi/pulumi-eks/sdk/go/eks>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create an EKS cluster with the default configuration.
cluster, err := eks.NewCluster(ctx, "my-cluster1", nil)
if err != nil {
return err
}
// Export the cluster's kubeconfig.
ctx.Export("kubeconfig", cluster.Kubeconfig)
return nil
})
}
bright-kangaroo-18349
08/26/2021, 11:24 AMacoustic-alarm-43219
08/26/2021, 3:04 PMfuture-refrigerator-88869
08/26/2021, 5:54 PMawsx.ecr.Repository
which has a function buildAndPushImage
but it does not allow a lot of configuration for the image. What is the standard for creating images and pushing them to an ECR. Appreciate if someone can point me in the right direction 🙂brash-quill-35776
08/26/2021, 7:31 PMgorgeous-minister-41131
08/26/2021, 8:45 PMbitter-window-92425
08/27/2021, 8:12 AMwhite-cat-90296
08/27/2021, 8:30 AMskip_provider_registration
flag.
Any ideas why this behaviour occurs and what is a workaround in Pulumi?
Note: This only occurs when I am using a method for Getting an existing registry by name and resource group. If I am creating resources, I am experiencing no issues.
Error: invocation of azure:containerservice/getRegistry:getRegistry returned an error: 1 error occurred:
* Error ensuring Resource Providers are registered.
Terraform automatically attempts to register the Resource Providers it supports to
ensure it's able to provision resources.
If you don't have permission to register Resource Providers you may wish to use the
"skip_provider_registration" flag in the Provider block to disable this functionality.
Please note that if you opt out of Resource Provider Registration and Terraform tries
to provision a resource from a Resource Provider which is unregistered, then the errors
may appear misleading - for example:
> API version 2019-XX-XX was not found for Microsoft.Foo
thousands-planet-78612
08/27/2021, 9:11 AMpulumi destroy -t urn:pulumi:stk::project1::aws:eks/cluster:Cluster::eks-cluster
I am using same token to create eks cluster, Is there anything i am missing ?
$ pulumi destroy -t urn:pulumi:stk::project1::aws:eks/cluster:Cluster::eks-cluster
Previewing destroy (stk):
Type Name Plan
pulumi:pulumi:Stack project1-stk
- └─ aws:eks:Cluster eks-cluster delete
Resources:
- 1 to delete
Do you want to perform this destroy? details
- aws:eks/cluster:Cluster: (delete)
[id=eks-cluster-55e5e55]
[urn=urn:pulumi:stk::project1::aws:eks/cluster:Cluster::eks-cluster]
Do you want to perform this destroy? yes
Destroying (stk):
Type Name Status Info
pulumi:pulumi:Stack project1-stk **failed** 1 error
- └─ aws:eks:Cluster eks-cluster **deleting failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (project1-stk):
error: update failed
aws:eks:Cluster (eks-cluster):
error: 1 error occurred:
* error configuring Terraform AWS Provider: AWS account ID not previously found and failed retrieving via all available methods. See <https://www.terraform.io/docs/providers/aws/index.html#skip_requesting_account_id> for workaround and implications. Errors: 2 errors occurred:
* error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
status code: 403, request id: 40236ffc-d24a-4be8-9069-85ab000ea1c5
* failed getting account information via iam:ListRoles: InvalidClientTokenId: The security token included in the request is invalid.
status code: 403, request id: 690d530c-88d9-4999-81f8-962d87739874
Resources:
Duration: 5s
witty-helmet-74677
08/27/2021, 9:31 AMnarrow-nest-20042
08/27/2021, 5:47 PMonEvent
: https://github.com/pulumi/pulumi-azure/blob/master/examples/eventhub/index.ts - is there an updated example?tall-nightfall-10556
08/27/2021, 7:14 PMcurved-pharmacist-41509
08/28/2021, 4:25 AM--skip-preview
 flag was passed in your pulumi application?many-helicopter-89037
08/29/2021, 11:20 PMcreate
function implementation. SSH connection part just doesn't run. Any guidance will be much appreciated.
import * as pulumi from '@pulumi/pulumi';
import { Client } from 'ssh2';
interface MyProviderInputs {
readonly username: string;
}
export class MyProvider implements pulumi.dynamic.ResourceProvider {
async create(
inputs: MyProviderInputs
): Promise<pulumi.dynamic.CreateResult> {
const conn = new Client();
conn
.on('ready', () => {
console.log('Client :: ready');
conn.exec('./create-user.py', (err, stream) => {
if (err) throw err;
stream
.on('close', (code: any, signal: any) => {
console.log(
'Stream :: close :: code: ' + code + ', signal: ' + signal
);
conn.end();
})
.on('data', (data: any) => {
console.log('User created ...')
})
.stderr.on('data', (data) => {
console.log('STDERR: ' + data);
});
});
})
.on('error', (err) => {
throw err;
});
conn.connect({
host: '10.10.2.2',
username: 'ubuntu',
password: '123'
});
return {
id: '1',
outs: inputs,
};
}
}
big-london-74366
08/30/2021, 3:40 AMpulumi state delete urn:pulumi:production::blog::aws:rds/instance:Instance::blog
After that, I'll uncomment the code rds code and run pulumi destroy
Is that the way to do this or there's a better way to achieve this?bland-minister-14373
08/30/2021, 9:53 AMGetRegistryCredentials
https://www.pulumi.com/docs/reference/pkg/azure-native/containerregistry/getregistrycredentials/, but the problem is that it provides only strings and not outputs, and when I try to make them as an output of the stack I get an error indicating the value was not an output, any workarounds?
``````bland-minister-14373
08/30/2021, 11:48 AMAzure
classic library of pulumi(https://www.pulumi.com/docs/reference/pkg/azure/containerservice/registry/)
var registry = new Azure.ContainerService.Registry(registryName,
new Azure.ContainerService.RegistryArgs
{
AdminEnabled = true,
Name = registryName,
ResourceGroupName = resourceGroup.Name,
Sku = "Standard",
Tags =
{
{"scope", "sample scope"}
},
});
Url = registry.LoginServer.Apply(loginServer=> $"https://{loginServer}");
Password = registry.AdminPassword;
Username = registry.AdminUsername;
with the new api, AzureNative
(https://www.pulumi.com/docs/reference/pkg/azure-native/containerregistry/registry/)icy-jordan-58549
08/31/2021, 7:08 AMancient-eve-13947
08/31/2021, 9:24 AMprehistoric-kite-30979
08/31/2021, 3:10 PMExecuting command: pulumi-resource-elasticcloud
error: fatal: could not connect to host RPC; missing argument
However, when pulumi preview is ran on the CD machine it throws the following error, which appears to be looking for the plugin using a binary name that includes the version:
error: could not load plugin for elasticcloud provider 'urn:pulumi:xxx::xxx::pulumi:providers:elasticcloud::elastic': no re
source plugin 'elasticcloud-v0.0.3' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource ela
sticcloud v0.0.3`
Does anyone have any idea about what might be going on here?calm-quill-21760
08/31/2021, 4:22 PMcreate_certificate_signing_request
in the K8s API, CertificateSigningRequest
in Pulumi). The next step using the K8s API is V1beta1CertificateSigningRequestCondition
followed by replace_certificate_signing_request_approval
. I don’t see directly-equivalent methods in Pulumi. I see CertificateSigningRequestStatusArgs
and CertificateSigningRequestConditionArgs
but nothing to actually sign the request. I haven’t yet found any example code on this process in Pulumi. Any pointers?dazzling-family-13566
08/31/2021, 6:54 PMswift-intern-18856
08/31/2021, 8:35 PMfuture-diamond-31373
09/01/2021, 9:15 AMpulumi preview
or pulumi up
error: Running program '/platform-cloud-services' failed with an unhandled exception:
Error: Remote object was not 'function': {"type":"object","className":"Function","description":"Function","objectId":"-2560291290870578958.2.6040"}
at /platform-cloud-services/node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:149:23
at Generator.next (<anonymous>)
at fulfilled (/platform-cloud-services/node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
famous-rain-47417
09/01/2021, 12:11 PMazure-test:tags: {
"ambiente": "dev",
"centro-de-custo": "10mzbr7h47",
"centro-custo": "10mzbr7h47",
"funcao": "AKS",
"owner": "<mailto:marcelo.prioste@claro.com.br|marcelo.prioste@claro.com.br>",
"produto": "nbatecnico",
"projeto": "nbatecnico",
"diretoria": "ti"
}
famous-rain-47417
09/01/2021, 12:12 PMtags=config.get("tags"),
modern-belgium-42936
09/01/2021, 12:13 PMpulumi import aws:ec2/instance:Instance github-runner-1 <instance-id>
I am met with the error:
Previewing import (dev)
View Live: <https://app.pulumi.com/lwooden/github-runners/dev/previews/d953777e-c02b-4d34-8718-8382479da9e1>
Type Name Plan Info
+ pulumi:pulumi:Stack github-runners-dev create 1 error
= └─ aws:ec2:Instance github-runner-1 import 4 errors
Diagnostics:
pulumi:pulumi:Stack (github-runners-dev):
error: preview failed
aws:ec2:Instance (github-runner-1):
error: aws:ec2/instance:Instance resource 'github-runner-1' has a problem: AtLeastOne: "launch_template": one of `ami,instance_type,launch_template` must be specified. Examine values at 'Instance.LaunchTemplate'.
error: aws:ec2/instance:Instance resource 'github-runner-1' has a problem: AtLeastOne: "ami": one of `ami,launch_template` must be specified. Examine values at 'Instance.Ami'.
error: aws:ec2/instance:Instance resource 'github-runner-1' has a problem: AtLeastOne: "instance_type": one of `instance_type,launch_template` must be specified. Examine values at 'Instance.InstanceType'.
error: Preview failed: one or more inputs failed to validate
famous-rain-47417
09/01/2021, 12:13 PMfamous-rain-47417
09/01/2021, 12:13 PM