- Newest
- Most votes
- Most comments
The documentation seems to be wrong. It turns out that the AccessString property is required.
Based on the information provided, it seems you're encountering an internal error while trying to create an ElastiCache user using CloudFormation. This type of error can be challenging to troubleshoot as it doesn't provide specific details about the cause. However, there are a few things we can consider to help resolve the issue:
-
Resource Properties: Your CloudFormation template for the AWS::ElastiCache::User resource appears to be missing some required properties. The 'Engine' property should be set to either 'redis' or 'valkey'. Also, ensure that the 'UserId' follows the pattern '[a-z][a-z0-9-]*'.
-
Authentication Mode: You've tried two different approaches for setting up authentication. The 'NoPasswordRequired' property is a valid option, but make sure it's set to true if you don't want to require a password. Alternatively, using the 'AuthenticationMode' property with 'Type: no-password-required' is also correct.
-
IAM Permissions: Although you mentioned you're an administrator, it's worth double-checking that your IAM role or user has the necessary permissions to create ElastiCache users. Ensure you have the 'elasticache:CreateUser' permission.
-
Service Limits: Check if you've reached any service limits for ElastiCache users in your account.
-
ElastiCache Version: Confirm that you're using ElastiCache versions that support user creation (Redis 6.0 and above, or Memcached 7.2 and above).
-
Region Availability: Ensure that the feature is available in the AWS region you're working in.
-
Retry: As the error message suggests, this could be a temporary issue. Try running the CloudFormation stack creation again after a short wait.
-
AWS Support: If the issue persists, consider contacting AWS support. They can provide more detailed information about the internal error you're encountering.
To further troubleshoot, you could try creating the user manually through the AWS CLI or console to see if you encounter the same error. This might provide more specific error messages that could help identify the root cause.
Remember to validate your CloudFormation template syntax and ensure all required properties for the AWS::ElastiCache::User resource are correctly specified.
Sources
AWS::ElastiCache::User - AWS CloudFormation
ElastiCache examples using AWS CLI - AWS SDK Code Examples
Resolve IAM permission errors in CloudFormation | AWS re:Post
Relevant content
- asked 6 months ago