cuddly-smartphone-15267
03/22/2023, 6:00 AM6.x
eg:
const redis = new Cluster(ResourceName("redis"), {
engine: "redis",
engineVersion: "6.x",
nodeType: "cache.t3.micro",
numCacheNodes: 1,
parameterGroupName: "default.redis6.x",
port: 6379,
subnetGroupName: redisSubnetGroup.name,
securityGroupIds: [redisSecurityGroup.id]
...
i'm trying to upgrade it to version 7 but not having any luck..
i change to:
...
engineVersion: "7.x",
parameterGroupName: "default.redis7",
...
and i get the following error:
Error updating ElastiCache cluster (kp-au-test2-redis-9221ace), error: InvalidParameterCombination: Cannot find version 7.x for redis
i also tried specifying engineVersion: "7.0"
, engineVersion: "7"
and engineVersion: "7.0.7"
and each time, i get the error:
engine_version: Redis versions must match <major>.x when using version 6 or higher, or <major>.<minor>.<bug-fix>
would anybody have any clues what we might be doing wrong?narrow-monkey-73218
03/22/2023, 6:42 AMpulumi preview
, it tries to create the same resource. Do anyone happen to know the reason for this?fancy-lighter-60600
03/22/2023, 8:16 AMgorgeous-lunch-7514
03/22/2023, 12:56 PMblue-hair-78768
03/22/2023, 3:49 PMaws:ec2:Vpc (eu-west-1-sandbox):
error: deleting urn:pulumi:core-sandbox::core::aws:ec2/vpc:Vpc::eu-west-1-sandbox: 1 error occurred:
* error deleting EC2 VPC (vpc-082befcf081fca371): DependencyViolation: The vpc 'vpc-082befcf081fca371' has dependencies and cannot be deleted.
dry-journalist-60579
03/22/2023, 7:16 PMpulumi up
on a stack that includes a ecr Repository and a RepositoryPolicy, it thinks the policy is different every run:
# Allow app subaccounts to pull from image repository
repository_policy = aws.ecr.RepositoryPolicy(
"repository-policy",
repository=repository.name,
policy={
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCrossAccountPull",
"Effect": "Allow",
"Principal": {
"AWS": [
f"arn:aws:iam::{account_id}:root"
for account_id in ALLOWED_ACCOUNT_IDS
]
},
"Action": [
"ecr:BatchCheckLayerAvailability",
"ecr:BatchGetImage",
"ecr:GetDownloadUrlForLayer",
],
}
],
},
)
plain-parrot-21984
03/23/2023, 9:20 AMcalm-account-35699
03/23/2023, 1:40 PMerror: no matches for kind "CustomResourceDefinition" in version "<http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1>"
. The issue is similar to https://github.com/pulumi/pulumi-eks/issues/720.
I attempted to fix this issue by upgrading to the latest @pulumi/eks
, but the problem persists, and pulumi keeps trying to use kubectl
to apply an older amazon-k8s-cni.yaml
file.most-state-94104
03/23/2023, 4:38 PMpreview --expect-no-changes
in combination with feature flags to confirm that no changes will happen in prod
when I enable a feature flag in dev
. This is mostly successful apart from aws.dms.ReplicationTask which always detects an update even if the code has not changed, regardless of whether the tasks are stopped. Is that the expected behaviour? I’ve pasted the code in the thread if helpful.brash-book-79719
03/23/2023, 7:01 PMconst clusterRole = new aws_native.iam.Role("clusterRole", {
assumeRolePolicyDocument: {
statements: [{
effect: "Allow",
principals: [{
type: "Service",
identifiers: ["<http://eks.amazonaws.com|eks.amazonaws.com>"],
}],
actions: ["sts:AssumeRole"],
}],
managedPolicyArns: [
"arn:aws:iam::aws:policy/AmazonEKSClusterPolicy",
"arn:aws:iam::aws:policy/AmazonEKSVPCResourceController",
]
}});
And I’m getting the error:
aws-native:iam:Role (clusterRole):
error: resource partially created but read failed. read error: reading resource state: operation error CloudControl: GetResource, https response error StatusCode: 400, RequestID: ced5d4bf-8b4a-4987-a829-5d1a8ff2b2d5, ResourceNotFoundException: AWS::IAM::Role Handler returned status FAILED: The role with name clusterRole-88a77e3 cannot be found. (Service: Iam, Status Code: 404, Request ID: f31de7e3-6ebd-4082-b42b-4d0aa68d664b) (HandlerErrorCode: NotFound, RequestToken: 8c119a29-e230-499c-90e8-bb99b44bacc0), create error: operation CREATE failed with "InvalidRequest": Unknown field managedPolicyArns (Service: Iam, Status Code: 400, Request ID: 4fbfb53c-1468-4390-9503-1c624f6012ec)
Is managedPolicyArns
not supported?brash-book-79719
03/23/2023, 7:07 PMmanagedPolicyArns
, but according to the AWS docs it should be ManagedPolicyArns
millions-parrot-88279
03/24/2023, 2:46 AMbrash-book-79719
03/24/2023, 5:43 PM@pulumi/eks
and I consistently get these errors when it’s trying to install the nodeAccess config map and vpc-cni plugin:
kubernetes:core/v1:ConfigMap (supaglue-production-nodeAccess):
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://31D666DA6474E04F6D9BF247B0C4A017.gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s>": getting credentials: decoding stdout: couldn't get version/kind; json parse error: json: cannot unmarshal array into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
eks:index:VpcCni (supaglue-production-vpc-cni):
error: Command failed: kubectl apply -f /var/folders/5p/wkr3ydl163jg9b0t7vf_7h080000gn/T/tmp-31472OyZMmul3goiI.tmp
Unable to connect to the server: getting credentials: decoding stdout: couldn't get version/kind; json parse error: json: cannot unmarshal array into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
Is the kubeconfig that is generated incorrect? It seems like it may be? Has anyone seen this before?bored-branch-92019
03/28/2023, 4:21 PM443
listener. It is unclear to me the correct way to add multiple SSL CERTs for a 443
listener. I wrote some code below, however I suspect i might be misunderstanding how to use pulumi inputs/outputs correctly so If anyone can point me to the right direction that would be greatly appreciated.
Example code in 🧵 .rapid-appointment-67477
03/28/2023, 10:18 PMaws.rds.Cluster(engine_version="14.6")
and am getting this message
Failed to modify RDS Cluster (cluster-name) InvalidParameterCombination: The current DB cluster parameter group parameter-group-name is custom. You must explicitly specify a new DB cluster parameter group, either default or custom, for the engine version upgrade.
the error suggested creating a new cluster parameter group, so I changed this original code:
pg_name = "parameter-group-name"
parameter_group = ClusterParameterGroup(
pg_name,
name=pg_name,...)
Cluster(...
db_cluster_parameter_group_name=parameter_group.name,...)
I only changed pg_name="parameter_group-name-versioned"
and now pulumi shows it wants to create the new parameter group but still get the same error. what else is needed?white-rain-67342
03/28/2023, 11:23 PMconst lb = new awsx.lb.ApplicationLoadBalancer(`${prefix}-lb`, {
listeners: [
{
protocol: 'HTTPS',
port: 443,
sslPolicy: 'ELBSecurityPolicy-2016-08',
certificateArn: sslCertificateArn,
},
{
protocol: 'HTTP',
port: 80,
defaultActions: [
{
type: 'redirect',
redirect: {
port: '443',
protocol: 'HTTPS',
statusCode: 'HTTP_301',
},
},
],
},
],
defaultTargetGroup: {
port: 80,
protocol: 'HTTP',
},
});
alert-spoon-97538
03/28/2023, 11:37 PMerror: resource partially created but read failed
. This is using aws-native (0.55.0). I didn't see any support elsewhere. Any thoughts?plain-lunch-16168
03/29/2023, 11:57 AMenough-painter-7423
03/29/2023, 4:13 PMpulumi:providers:aws default_5_30_0
and
• pulumi:providers:aws default_5_33_0
in a single pulumi stack -i
output. Should I be worried about them? I'm troubleshooting some mysterious flip-flop between empty and stale values of AWS default tags on my resources, and I'm wondering if the duplicated providers are the culprit (though I know little about them)cold-sundown-35940
03/29/2023, 5:21 PMastonishing-exabyte-93491
03/29/2023, 6:10 PM@pulumi/aws-native
provider?fresh-spring-82225
03/29/2023, 7:11 PMawsx.ecr.Image
to docker.Image
?careful-family-14644
03/30/2023, 2:58 PMcalm-account-35699
03/31/2023, 7:53 AMus-east-1
region, but keeps getting a resource does not exist
error, despite having explicitly defined the provider.
This is how I'm doing it:
pulumi import 'aws:acm/certificate:Certificate' cert arn:aws:acm:us-east-1:<account id>:certificate/<cert id> --provider '<name>=<arn>'
My program code is using another default region, but I've defined a us-east-1
provider explicitly for thisnumerous-alarm-76016
03/31/2023, 11:57 AMtall-afternoon-2439
04/02/2023, 3:06 PMenough-painter-7423
04/03/2023, 3:48 AMeu-west-3
aka Paris region which I've never used before, aws s3 --region eu-west-3 ls
can enumerate all my buckets from all AWS regions. This Python script does the same:
import logging
import pprint
import boto3
import boto3.session
boto3.set_stream_logger('', 0)
s = boto3.session.Session(region_name='eu-west-3')
s3 = s.client('s3')
pprint.pprint(s3.list_buckets()['Buckets'], width=200)
However when I ran GetBucket.Invoke(GetBucketInvokeArgs(Bucket="my-bucket"))
(I'm using .NET & AWS Classic provider) I got this error
Failed getting S3 bucket (my-bucket): BucketRegionError: incorrect region, the bucket is not in 'ap-northeast-1' region at endpoint '', bucket is in 'ap-southeast-1' region
For now, I'm going to set up a Provider
object for each cross-regional reference to an S3 bucket, as I believe that will unblock me. But I can't help but feel that this is an unnecessary chore. Did I overlook anything?polite-napkin-90098
04/03/2023, 7:06 PMcalm-vr-6039
04/03/2023, 7:17 PMplain-lunch-16168
04/03/2023, 7:44 PM