gifted-city-99717
05/27/2020, 4:10 PM♥ λ go test -v
# <http://github.com/pulumi/pulumi/pkg/v2/resource/stack|github.com/pulumi/pulumi/pkg/v2/resource/stack>
../../../../../../pkg/mod/github.com/pulumi/pulumi/pkg/v2@v2.2.1/resource/stack/deployment.go:405:10: secret.Plaintext undefined (type apitype.SecretV1 has no field or method Plaintext)
FAIL notifying-sink [build failed]
thanks!gifted-city-99717
05/28/2020, 10:05 PMtype folderArgs struct {
}
type FolderArgs struct {
}
I’ve applied this pattern, but I’m not sure why. Is this a state management thing? I see the ElementType
function below and see some reflection going on… Where would be the best place to read up on this in pulumi source or docs? Thanks!lemon-agent-27707
05/28/2020, 10:59 PMgifted-city-99717
05/29/2020, 8:20 PM[]string{}
, map[string]string
) into integration.ProgramTest - The Config
attribute in integration.ProgramTestOptions is a map[string]string{}
gifted-city-99717
06/02/2020, 4:57 PMec2.LookupVpc
don’t perform lookups in [unit] tests. Are there any examples of mocking them out?adventurous-book-24480
06/09/2020, 1:53 PMpulumi.NewRemoteStateReference
that points to a terraform state file in S3. The resulting type is pulumi.StringOutput
. I need to now call ecs.LookupCluster()
to discover the cluster's Arn. How do I get my pulumi.StringOutput
to satisfy string
for the input?adventurous-book-24480
06/09/2020, 2:33 PMadventurous-book-24480
06/09/2020, 2:33 PMwet-egg-6347
06/09/2020, 3:25 PMgifted-city-99717
06/12/2020, 2:28 AM// Helpers for accessing properties are not yet available in Go.
in the docsgifted-city-99717
06/12/2020, 3:41 AM[ oyments/ci-telemetry/escluster ] + pulumi:pulumi:Stack escluster-p-it-loptaploca-escluster-cd98c21a creating
[ oyments/ci-telemetry/escluster ] + citelemetry:elasticsearch:ESClusterComponent insights-ci-es-dev creating
[ oyments/ci-telemetry/escluster ] + aws:ec2:SecurityGroup insights-ci-es-dev-sg creating
[ oyments/ci-telemetry/escluster ] + aws:iam:ServiceLinkedRole insights-ci-es-dev-linked-role creating
[ oyments/ci-telemetry/escluster ] + aws:iam:ServiceLinkedRole insights-ci-es-dev-linked-role created
[ oyments/ci-telemetry/escluster ] + aws:ec2:SecurityGroup insights-ci-es-dev-sg created
[ oyments/ci-telemetry/escluster ] + aws:elasticsearch:Domain insights-ci-es-dev creating
[ oyments/ci-telemetry/escluster ] @ Updating....[ oyments/ci-telemetry/escluster ] Still running command '/usr/local/bin/pulumi up --non-interactive --yes --skip-preview --event-log /var/folders/30/1ks5_94n54x29jjdkhvj974m0000gn/T/p-it-loptaploca-escluster-cd98c21a-events.json' (/Users/jws/code/gocode/src/stackName-1591932181711912000)...
[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] Still running command '/usr/local/bin/pulumi up --non-interactive --yes --skip-preview --event-log /var/folders/30/1ks5_94n54x29jjdkhvj974m0000gn/T/p-it-loptaploca-escluster-cd98c21a-events.json' (/Users/jws/code/gocode/src/stackName-1591932181711912000)...
[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .[ oyments/ci-telemetry/escluster ] .coverage: 0.0% of statements
panic: test timed out after 10m0s
goroutine 31 [running]:
testing.(*M).startAlarm.func1()
/usr/local/Cellar/go/1.14.3/libexec/src/testing/testing.go:1459 +0xdf
created by time.goFunc
/usr/local/Cellar/go/1.14.3/libexec/src/time/sleep.go:168 +0x44
anyone figure out how to override the timeout in an integration test?salmon-account-74572
06/23/2020, 3:48 PMlemon-agent-27707
06/23/2020, 3:55 PMlemon-agent-27707
06/23/2020, 3:56 PMlemon-agent-27707
06/23/2020, 3:56 PMsalmon-account-74572
06/23/2020, 4:03 PMsalmon-account-74572
06/24/2020, 1:26 AMfor
loop to create a subnet in each AZ. The problem I'm having is this: how do I capture the subnet IDs as they are created? Code included in a thread below.salmon-account-74572
06/24/2020, 5:27 PMRoute
when creating a DefaultRouteTable
in Go? There's no example in the API reference for Go, and I can't seem to get the syntax quite right.echoing-librarian-76448
06/24/2020, 7:50 PMpulumi preview
it gives me the following error message:
.\main.go:153:30: undefined: mssql.ServerAzureadAdministratorPtr
.\main.go:154:4: undefined: mssql.ServerAzureadAdministratorArgs
.\main.go:161:27: undefined: mssql.NewServer
.\main.go:162:4: undefined: mssql.ServerArgs
Here's the code I'm using:
// SQLServerInput is a struct to define required Sql Server properties
// <https://www.pulumi.com/docs/reference/pkg/azure/mssql/server/#inputs>
type SQLServerInput struct {
AdministratorLogin string
AdministratorLoginPassword string
Location string
Name string
ResourceGroupName string
Version string
}
// SQLServerAzureADAdministrator is a struct to define Sql Server Azure AD Administrator properties
// <https://www.pulumi.com/docs/reference/pkg/azure/mssql/server/#serverazureadadministrator>
type SQLServerAzureADAdministrator struct {
LoginUsername string
ObjectID string
TenantID string
}
// Validate and load SQL Server config from Stack yaml file
sqlServerInput := []*SQLServerInput{}
if err := cfg.TryObject("sqlServers", &sqlServerInput); err != nil {
return err
}
// Validate and load ServerAzureADAdministrator Args
azureADAdministratorInput := []*SQLServerAzureADAdministrator{}
if err := cfg.TryObject("azureAdAdministrator", &azureADAdministratorInput); err != nil {
return err
}
// Convert ServerAzureadAdministratorArgs into ServerAzureadAdministratorPtrInput per
// <https://pkg.go.dev/github.com/pulumi/pulumi-azure/sdk/v3@v3.9.3/go/azure/mssql?tab=doc#ServerArgs>
azureADAdministratorArgs := mssql.ServerAzureadAdministratorPtr(
&mssql.ServerAzureadAdministratorArgs{
LoginUsername: pulumi.String(azureADAdministratorInput[0].LoginUsername),
ObjectId: pulumi.String(azureADAdministratorInput[0].ObjectID),
TenantId: pulumi.StringPtr(azureADAdministratorInput[0].TenantID),
})
// Create the SQL Server
preprodSQLServer, err := mssql.NewServer(ctx, sqlServerInput[0].Name,
&mssql.ServerArgs{
Name: pulumi.StringPtr(sqlServerInput[0].Name),
ResourceGroupName: pulumi.String(sqlServerInput[0].ResourceGroupName),
AdministratorLogin: pulumi.String(sqlServerInput[0].AdministratorLogin),
AdministratorLoginPassword: pulumi.String(sqlServerInput[0].AdministratorLoginPassword),
AzureadAdministrator: azureADAdministratorArgs,
Location: pulumi.StringPtr(sqlServerInput[0].Location),
Version: pulumi.String(sqlServerInput[0].Version),
Tags: tags,
})
if err != nil {
return err
}
salmon-account-74572
06/25/2020, 10:27 PMblue-computer-71271
07/01/2020, 6:11 PMsalmon-account-74572
07/01/2020, 8:19 PMPulumi.Map
to create maps for assigning AWS tags is broken. Sample code is threaded below.salmon-account-74572
07/01/2020, 10:48 PMec2.NewSecurityGroup
only have a single ingress rule. What's the syntax for specifying multiple ingress rules?blue-computer-71271
07/02/2020, 1:52 AMimportant-appointment-55126
07/02/2020, 1:55 AMpulumi.String
wrapping for youimportant-appointment-55126
07/02/2020, 1:55 AMlemon-agent-27707
07/02/2020, 2:49 AMsalmon-account-74572
07/02/2020, 8:46 PMechoing-rain-5741
07/06/2020, 2:48 PMpulumi.Output
and a Pulumi.OutputState
. I’m creating a config file ( in the form of a pulumi.StringMap
) that includes various references to other pulumi resources, hence I used the pulumi.All(arg1, arg2,...).ApplyT(func(args []interface{}) (pulumi.StringMap,error){...})
(as suggested in the docs,) which supposedly returns a pulumi.Output
To be able to use it to create a kubernetes ConfigMap, i need to have a OutputState. What would the best way be to convert the output to the output state be, and what is the difference? I managed to convert the pulumi.Output
config to a output state using configMapData.Apply(func(x interface{}) (interface{}, error) { return x, nil }).OutputState
but this seems overly convoluted.magnificent-baker-63834
07/16/2020, 7:40 AMpulumi
cli commands? I'd like to use it as part of a larger application but can't seem to find any documentation on how or even if it's possible.