witty-vegetable-61961
06/16/2022, 7:02 PMsalmon-fireman-44748
06/17/2022, 12:19 AMwitty-vegetable-61961
06/17/2022, 1:05 PMincalculable-monkey-35668
06/19/2022, 3:59 AMGRANT SELECT (col1), INSERT (col1,col2) ON mydb.mytbl TO 'someuser'@'somehost';
brave-belgium-54530
06/20/2022, 2:35 PMdb.apply(x => db.set({finaleSnapshotId: `prefix….${x.id}})
Does anyone here have an experience with that?
Thanks 🙂stale-iron-26898
06/20/2022, 4:13 PMuser_password = RandomPassword().result
the variable ‘user_password’ I sent to my dynamic resource which only create a query with the ‘user_password’ inside (Eventually is a string ) the problem is that the value is the Object itself <pulumi.output.Output at 0x7ffe81ffe6d0>
is there a way to export the value i get from randomPassword into a string in run time? 😢
Thanks!breezy-glass-7721
06/20/2022, 6:26 PMwitty-vegetable-61961
06/20/2022, 8:41 PMmagnificent-helicopter-3467
06/21/2022, 6:06 AMPulumi.dev.yaml
of the following form:
config:
gcp-go-gke:data:
cluster:
initialNodeCount: 2
machineType: n1-standard-2
name: my-cluster
registry:
appLabel: my-proj
deployment:
containers:
- image: us-central1-docker.pkg.dev/my-gcloud-proj/my-gcloud-repo/my-image:0.1.0
name: my-image
name: my-deployment
replicas: 1
namespace:
metadata:
name: namespace-meta
name: my-namespace
service:
name: my-service
port: 80
serviceType: LoadBalancer
targetPort: 8080
gcp:project: my-proj
gcp:zone: us-west1-a
In main.go
, I have the following code:
type Data struct {
cluster Cluster
registry Registry
}
type Cluster struct {
initialNodeCount int
machineType string
name string
}
type Registry struct {
appLabel string
deployment Deployment
namespace Namespace
service Service
}
type Deployment struct {
containers []Container
name string
replicas int
}
type Namespace struct {
metadata Metadata
name string
}
type Service struct {
name string
port int
targetPort int
serviceType string
}
type Container struct {
image string
name string
}
type Metadata struct {
name string
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
var d Data
cfg := config.New(ctx, "")
cfg.RequireObject("data", &d)
engineVersions, err := container.GetEngineVersions(ctx, &container.GetEngineVersionsArgs{})
if err != nil {
return err
}
masterVersion := engineVersions.LatestMasterVersion
cluster, err := container.NewCluster(ctx, d.cluster.name, &container.ClusterArgs{
...
}
The cfg.RequireObject
call does not panic, but d.cluster.name
resolves to ""
. I’m using this doc as a reference to read structured configuration. Any tips for troubleshooting why the config is not read properly? I used verbose logging ( pulumi up --logtostderr --logflow -v=9 2> out.txt
) but didn’t find anything useful in the logs. Thanks in advance for your help/guidance! 🙂flat-ambulance-51692
06/21/2022, 9:27 PMflat-ambulance-51692
06/21/2022, 9:33 PMusing System.Collections.Immutable;
using Pulumi;
using Pulumi.Awsx.Ec2.Inputs;
using Ec2 = Pulumi.Awsx.Ec2;
class MyStack : Stack
{
public MyStack()
{
var vpc = new Ec2.Vpc("custom", new Ec2.VpcArgs
{
SubnetSpecs =
{
new SubnetSpecArgs
{
Type = Ec2.SubnetType.Public,
CidrMask = 22,
},
new SubnetSpecArgs
{
Type = Ec2.SubnetType.Private,
CidrMask = 20,
}
}
});
this.VpcId = vpc.VpcId;
this.PublicSubnetIds = vpc.PublicSubnetIds;
this.PrivateSubnetIds = vpc.PrivateSubnetIds;
}
[Output] public Output<ImmutableArray<string>> PrivateSubnetIds { get; private set; }
[Output] public Output<ImmutableArray<string>> PublicSubnetIds { get; private set; }
[Output] public Output<string> VpcId { get; set; }
}
class Program
{
static Task<int> Main(string[] args) => Deployment.RunAsync<MyStack>();
}
However, having some issues resolving dependencies (see attached image). I've included the packages window so you can see the versions.
Judging by the using
statements this example code seems out of date?incalculable-thailand-44404
06/22/2022, 7:31 PMbreezy-architect-90539
06/23/2022, 7:11 AMearly-morning-93703
06/23/2022, 9:01 AMimport * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const database = new azure_native.sql.Database("database", {
databaseName: "testdb",
location: "southeastasia",
requestedBackupStorageRedundancy: "Zone",
resourceGroupName: "Default-SQL-SouthEastAsia",
serverName: "testsvr",
});
Which values of requestedBackupStorageRedundancy
can be use in this config?
I can't find any document mention about which value can be use here.
Thanks.ancient-solstice-53934
06/23/2022, 12:24 PMelegant-pillow-72893
06/23/2022, 7:19 PMNote:
This is the output I get from list_storage_account
Outputs:
+ name : {
+ keys: [
+ [0]: {
+ creation_time: "2021-08-06T00:13:40.4886860Z"
+ key_name : "key1"
+ permissions : "FULL"
+ value : "xxxxxxxxxxxxx"
}
+ [1]: {
+ creation_time: "2021-08-06T00:13:40.4886860Z"
+ key_name : "key2"
+ permissions : "FULL"
+ value : "xxxxxxxxxxxxxxx"
}
]
}
silly-scientist-20604
06/23/2022, 7:49 PMPulumi.yaml
, in order to prevent accidental resource instantiation into an incorrect Pulumi org? For a consultant who manages Pulumi projects for several customers with separate Pulumi organizations, but all under his/her single email address, it seems unreasonably precarious to rely on correctly setting environment variables before running Pulumi commands.icy-pilot-31118
06/23/2022, 7:50 PMdeployment = [kubernetes.Deployment(), kubernetes.Deployment()]
will Pulumi deploy both of the deployments? Do I even need to specify a variable? Will Deployment()
work?prehistoric-translator-89978
06/23/2022, 10:22 PM├── infrastructure
│ ├── index.ts
│ ├── Pulumi.yaml
│ ├── Pulumi.dev.yaml
│ ├── Pulumi.staging.yaml
│ └── Pulumi.prod.yaml
├── myApp
│ ├── index.ts
│ ├── Pulumi.yaml
│ ├── Pulumi.dev.yaml
│ ├── Pulumi.staging.yaml
│ └── Pulumi.prod.yaml
└── ...
So we use infrastructure to create a vpc and other things in AWS...
Now, for some reason, myApp needs to get a hold of the vpcid output from infrastructure... How would I go about that?loud-carpenter-77875
06/24/2022, 10:14 AMhelpful-animal-2280
06/24/2022, 10:32 AMincalculable-thailand-44404
06/27/2022, 8:32 PMerror: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
. Any idea?polite-window-12946
06/27/2022, 9:32 PMstale-actor-16546
06/29/2022, 9:07 AMpulumi_test1 = akamai.Property("pulumi-test1",
contract_id="ctr_G-XXXXXXX",
group_id="grp_000000",
hostnames=[akamai.PropertyHostnameArgs(
cert_provisioning_type="CPS_MANAGED",
cert_statuses=[akamai.PropertyHostnameCertStatusArgs()],
cname_from="<http://cdn1.example.net|cdn1.example.net>",
cname_to="<http://cdn1.example.net.edgesuite.net|cdn1.example.net.edgesuite.net>",
cname_type="EDGE_HOSTNAME",
)],
name="pulumi-test1",
product_id="prd_Fresca",
rule_format="latest",
rules=json.dumps(rules),
opts=pulumi.ResourceOptions(protect=True)
)
few-toddler-19603
06/30/2022, 7:44 PMerror: Duplicate resource URN 'urn:pulumi:masterapi::masterapi::pulumi:pulumi:Stack::masterapi-masterapi'; try giving it a unique name
which, after hours of troubleshooting, I realised was NOT a duplicate resource I made in equinix (my provider) but something in pulumi trying to make a second stack
so I ask, why is pulumi trying to make the stack? and how can I tell it not tosquare-train-78639
07/01/2022, 6:47 AMsource
parameter in Pulumi ?
We need to solve a use case where in Different versions of Pulumi resource(s) need to be executed in parallel on the same instancehelpful-animal-74538
07/01/2022, 12:45 PMgetServer
method but this returns a GetServerResult
which does not extend Resource
so cannot be passed to the parent property of another resource - as opposed to the Server
type which you get if you create one in the same flow.careful-secretary-79148
07/02/2022, 11:08 AMbetter-umbrella-26052
07/02/2022, 2:19 PM