-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(opensearchservice): example in the doc doesn't work, error received-You must configure zone awareness settings if you turn on zone awareness.
#31583
Comments
Hi @jwoehrle , thanks for reaching out. This issue is reproducible . however what I observed while running the code - const devDomain = new Domain(this, 'Domain', {
version: EngineVersion.OPENSEARCH_2_15,
});
new cdk.CfnOutput(this, 'DomainEndpoint', { value: devDomain.domainEndpoint });
} the synthesized template has this "Resources": {
"Domain66AC69E0": {
"Type": "AWS::OpenSearchService::Domain",
"Properties": {
"ClusterConfig": {
"DedicatedMasterEnabled": false,
"InstanceCount": 1,
"InstanceType": "r5.large.search",
"MultiAZWithStandbyEnabled": true,
"ZoneAwarenessEnabled": false
},
"DomainEndpointOptions": {
"EnforceHTTPS": false,
"TLSSecurityPolicy": "Policy-Min-TLS-1-0-2019-07"
},
"EBSOptions": {
"EBSEnabled": true,
"VolumeSize": 10,
"VolumeType": "gp2"
},
"EncryptionAtRestOptions": {
"Enabled": false
},
"EngineVersion": "OpenSearch_2.15",
"LogPublishingOptions": {},
"NodeToNodeEncryptionOptions": {
"Enabled": false
}
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain",
"Metadata": {
"aws:cdk:path": "OpenSearchIssueStack/Domain/Resource"
}
}, I found previous similar issue -#29346 where a workaround has been suggested -#29346 (comment) Could you please check and confirm if this reported issue is similar and proposed workaround is working for you? Thanks |
Hi @khushail , thanks for reaching out. Yes, #29346 is similar, however it seems like in #29346 multiple subnets might be specified which will not work with zone awareness. I can confirm, that manually configuring the Here's my complete version: const devDomain = new os.Domain(this, 'Domain', {
version: os.EngineVersion.OPENSEARCH_2_15,
enableVersionUpgrade: true,
enableAutoSoftwareUpdate: true,
nodeToNodeEncryption: true,
enforceHttps: true,
encryptionAtRest: { enabled: true },
ebs: {
volumeSize: 30,
volumeType: ec2.EbsDeviceVolumeType.GP3,
throughput: 125,
iops: 3000,
},
capacity: {
dataNodeInstanceType: 'm6g.large.search',
multiAzWithStandbyEnabled: false,
masterNodes: 0,
dataNodes: 1,
},
zoneAwareness: {
enabled: false,
},
...
},
}); |
thanks for the confirmation @jwoehrle . Since this issue is similar to #29346, I would be marking current one as Hope that makes sense! if you would like to add any information to #29346, please feel free to do so. Let me know if you any further questions. |
You must configure zone awareness settings if you turn on zone awareness.
You must configure zone awareness settings if you turn on zone awareness.
Describe the bug
I'm trying to follow the documentation quick-start to create a dev-domain.
For a dev-domain my expectations are that there is only a single AZ used.
This is my stack:
Deployment fails with:
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
creation succeeds with a domain in a single AZ.
Current Behavior
creation fails with
Reproduction Steps
run
cdk deploy
with this stack:Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.160.0 (build 7a8ae02)
Framework Version
No response
Node.js Version
v20.9.0
OS
macOS 14.7
Language
TypeScript
Language Version
~5.6.2
Other information
No response
The text was updated successfully, but these errors were encountered: