tall-beard-99429
06/04/2021, 1:28 PMechoing-zebra-28421
06/04/2021, 3:50 PMconst api = new awsx.apigateway.API(`airship-api-${NODE_ENV}`, {
routes: [
{
path: "/",
method: "GET",
eventHandler: async (event: APIGatewayProxyEvent) => ({
statusCode: HttpStatus.OK,
body: "Hello, API Gateway V4!",
}),
},
{
path: "/api/named_users/associate",
method: "POST",
eventHandler: async (event: APIGatewayProxyEvent): Promise<any> => ({
statusCode: HttpStatus.OK,
body: JSON.stringify(await handleSetNamedUser(event)),
isBase64Encoded: false,
}),
},
{
path: "/api/channels/tags",
method: "POST",
eventHandler: async (event: APIGatewayProxyEvent) => ({
statusCode: HttpStatus.OK,
body: JSON.stringify(await handleSetTags(event)),
isBase64Encoded: false,
}),
},
],
});
I want to make something ifelegant-pager-5412
06/07/2021, 6:30 AMelegant-pager-5412
06/07/2021, 6:51 AMgray-hamburger-90102
06/07/2021, 10:24 AMaws.directconnect.GatewayAssociationProposal
to initiate a cross-account connection to a direct connect gateway. The problem I have though is that once I have accepted the proposal, Pulumi still tries to delete this resource when destroying the stack...
aws:directconnect:GatewayAssociationProposal (assocToMainDcGateway):
error: deleting urn:pulumi:web-testing::web-platform-vpc::aws:directconnect/gatewayAssociationProposal:GatewayAssociationProposal::assocToMainDcGateway: 1 error occurred:
* error deleting Direct Connect Gateway Association Proposal (49017cb1-925c-4ffb-aef2-4cdf0a853795): DirectConnectClientException: Direct Connect Gateway Association Proposal 49017cb1-925c-4ffb-aef2-4cdf0a853795 is not found
Is there a way to create a resource in Pulumi, but not register it to the Pulumi state?mammoth-king-17479
06/07/2021, 4:23 PM* error updating EC2 Managed Prefix List (pl-05402b9da4effacda): InvalidParameterValue: The specified value for version is not valid. The value must be greater than (1).
status code: 400, request id: c0d7b1b0-272b-4a22-a290-31752d07e859
billowy-army-68599
green-musician-49057
06/09/2021, 5:05 PMbored-table-20691
06/09/2021, 8:46 PM* Failed to modify RDS Cluster (aurora-postgres-ssa-tenants): InvalidParameterCombination: Cannot upgrade aurora-postgresql from 12.4 to 10.14
Should I just manually delete the RDS and then do a refresh? Something else?colossal-battery-24701
06/10/2021, 11:19 AMpulumi up
with other update code, I get completing deletion from previous update
. But I don’t want to do this. how do I cancel this?tall-beard-99429
06/10/2021, 2:31 PMaws.iam.User.get(user.name)
but without passing the ID, and just get the state that is in pulumi rather than a live API calladamant-translator-31969
06/10/2021, 6:54 PMtall-beard-99429
06/11/2021, 10:38 AMmillions-furniture-75402
06/11/2021, 2:27 PMthousands-art-36850
06/14/2021, 2:30 PMaws.ecs.Cluster
is not compatible with what’s required when creating an ECS FargateService awsx.ecs.Cluster
. Any suggestions / guidance would be appreciated, thanks in advance! (more details in 🧵 )alert-raincoat-81485
06/14/2021, 7:44 PMimport pulumi
import pulumi_aws as aws
asg_name = {}
class ASG():
def __init__(self):
self.name = name
# Creating Autoscaling.
asg_name[name] = aws.autoscaling.Group(.....defs....)
inst1 = ASG(idx1)
inst2 = ASG(idx2)
inst3 = ASG(idx3)
defineASG(a,inst_type)
## Boto API create EC2 tags ##
asg_id = {}
asg_id['idx1'] = autoScale['idx1'].name.apply(
lambda a: defineASG(asg=a, inst_type='idx1')
asg_id['idx2'] = autoScale['idx2'].name.apply(
lambda a: defineASG(asg=a, inst_type='idx2')
asg_id['idx3'] = autoScale['idx3'].name.apply(
lambda a: defineASG(asg=a, inst_type='idx3')
purple-plumber-90981
06/14/2021, 11:33 PMpulumi up
trying to replace my current-state aws providers with an older provider version (even though i have the newer version of the plugin installed) … wondering how this is controlled and how i can get my pulumi up
to not downgrade my providers (details in thread)adamant-translator-31969
06/15/2021, 6:13 PMnice-airport-15607
06/16/2021, 3:26 PMbillions-orange-71472
06/16/2021, 4:01 PMpulumi up
on an EC2 instance via instance profile with AdministratorAccess policy attached.I encountered following error when exec.
Previewing update (main)
View Live: <https://app.pulumi.com/xxxxxx/pulumi-go/main/previews/866e47e5-b3e3-45c4-85e7-14478267abea>
:
Diagnostics:
aws:iam:Role (sample-role):
error: 1 error occurred:
* error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Please see <https://registry.terraform.io/providers/hashicorp/aws>
for more information about providing credentials.
Error: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
After I created IAM user to generate AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY and configured to ~/.aws/credentials, It worked properly.
Sorry to ask such a basic question, but can' I perform 'pulumi up' with instance profile??colossal-plastic-46140
06/16/2021, 4:39 PMadamant-translator-31969
06/16/2021, 5:03 PMconst instanceCluster = new aws.rds.Cluster('rds-component', Args.cluster, opts);
next error appears.
Previewing update (develop):
Type Name Plan Info
pulumi:pulumi:Stack qdevelop running }
panic: fatal: An assertion has failed
goroutine 242 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)>
/Users/runner/work/pulumi/pulumi/sdk/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)>
/Users/runner/work/pulumi/pulumi/sdk/go/common/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.processIgnoreChanges|github.com/pulumi/pulumi/pkg/v3/resource/deploy.processIgnoreChanges>(0xc001ca1650, 0xc0013b04e0, 0xc0016b7e30, 0x1, 0x1, 0x1, 0xc, 0xc000de1b00)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_generator.go:1122 +0x590
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).generateSteps(0xc001bf5d40|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).generateSteps(0xc001bf5d40>, 0x7f390afd4500, 0xc0016b7ec0, 0x1, 0xc001373500, 0xc0005d79f8, 0x44a937, 0xc001728900)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_generator.go:240 +0x2529
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).GenerateSteps(0xc001bf5d40|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).GenerateSteps(0xc001bf5d40>, 0x7f390afd4500, 0xc0016b7ec0, 0x7f390afd4500, 0xc0016b7ec0, 0x1, 0x2, 0x469540)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_generator.go:152 +0x5a
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).handleSingleEvent(0xc001736018|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).handleSingleEvent(0xc001736018>, 0x20d25e0, 0xc0016b7ec0, 0x0, 0x2)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:372 +0x13f
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute.func3(0xc001728900|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute.func3(0xc001728900>, 0xc001736018, 0xc00172a810, 0x2100dd0, 0xc001378900, 0x0, 0x0, 0x2100e78, 0xc001374f60, 0x0, ...)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:242 +0x20c
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0xc001736018|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0xc001736018>, 0x2100e78, 0xc001374f60, 0x7f390b2dc398, 0xc001b80780, 0x7fffffff, 0x0, 0x0, 0x0, 0x0, ...)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:258 +0x7e5
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(...)|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(...)>
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment.go:405
<http://github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1|github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1>(0x210b368, 0xc001b80780, 0xc00016fcc0, 0x2100e78, 0xc001374f60, 0xc001374f01, 0xc00172a5b0, 0xc0017283c0)
/Users/runner/work/pulumi/pulumi/pkg/engine/deployment.go:260 +0x287
created by <http://github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run|github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run>
/Users/runner/work/pulumi/pulumi/pkg/engine/deployment.go:245 +0x308
millions-furniture-75402
06/17/2021, 6:09 PMmillions-furniture-75402
06/17/2021, 7:30 PMDeviceTypeWindows
and DeviceTypeOSX
in workspaceAccessProperties
have a 3rd value supported, TRUST
but it’s only mentioned in a comment about the properties, it’s not in the SDK’s documented types:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces.html#WorkSpaces.Client.modify_workspace_access_properties
response = client.modify_workspace_access_properties(
ResourceId='string',
WorkspaceAccessProperties={
'DeviceTypeWindows': 'ALLOW'|'DENY', # should also have |'TRUST'
'DeviceTypeOsx': 'ALLOW'|'DENY', # should also have |'TRUST'
'DeviceTypeWeb': 'ALLOW'|'DENY',
'DeviceTypeIos': 'ALLOW'|'DENY',
'DeviceTypeAndroid': 'ALLOW'|'DENY',
'DeviceTypeChromeOs': 'ALLOW'|'DENY',
'DeviceTypeZeroClient': 'ALLOW'|'DENY',
'DeviceTypeLinux': 'ALLOW'|'DENY'
}
)
To restrict WorkSpaces access to trusted devices (also known as managed devices) with valid certificates, specify a value of TRUST . For more information, see Restrict WorkSpaces Access to Trusted Devices .With that problem, is there any way I can bypass the validation below that’s blocking me, and attempt to apply the “invalid” value?
aws:workspaces:Directory (client-experience-workspaces-directory):
error: aws:workspaces/directory:Directory resource 'client-experience-workspaces-directory' has a problem: expected workspace_access_properties.0.device_type_osx to be one of [ALLOW DENY], got TRUST. Examine values at 'Directory.WorkspaceAccessProperties.DeviceTypeOsx'.
tall-beard-99429
06/18/2021, 9:03 AMaws_acm_certificate.root_cert.arn
come from?gentle-monitor-55086
06/18/2021, 5:25 PMimport {lambda} from "@pulumi/aws";
...
new lambda.CallbackFunction...
but at the
aws lambda docs page
there's no "CallbackFunction" definedgreat-sunset-355
06/19/2021, 6:49 AMbillowy-whale-42059
06/20/2021, 4:44 AMcolossal-plastic-46140
06/21/2021, 1:38 PM* updating urn:pulumi:s3-bucket::pulumi-aws-s3::pulumi:providers:aws$aws:s3/bucket:Bucket::us-east-1-bucket: 1 error occurred:
* json: cannot unmarshal object into Go value of type []*s3.RoutingRule
From what I can tell is that there isnt an args for routing rules, and it expects a json string, which has me confused. Is there supposed to be something along the lines of RoutingRulesArgs?colossal-plastic-46140
06/21/2021, 2:35 PM