- Newest
- Most votes
- Most comments
The issue you're experiencing with Neptune Analytics deployment appears to be related to CloudFormation Lambda Hooks performing early validation checks. These hooks are designed to evaluate resources before stack operations are executed, and in your case, the AWS::EarlyValidation::ResourceExistenceCheck hook is failing.
CloudFormation Lambda Hooks can be configured with different failure modes:
- FAIL: This prevents the action from proceeding and is used for enforcing strict compliance or security policies.
- WARN: This issues warnings but allows actions to continue, useful for non-critical validations.
In your case, the hook is likely configured with the FAIL mode, which is blocking your deployment.
There are a few potential causes and solutions to explore:
Potential causes:
- The Early Validation hook might be checking for prerequisites that aren't met for Neptune Analytics in your account or region.
- There could be a mismatch between the CloudFormation resource type definition and the actual service API.
- The hook might be enforcing policies specific to your organization that restrict Neptune Analytics deployments.
Suggested approaches:
-
Check CloudWatch Logs: Look for logs from the Lambda Hook execution to understand the specific validation failure. The hook invocation results should provide detailed information about why the validation failed.
-
Use the AWS CLI to get hook results: You can retrieve detailed information about the hook invocation using:
aws cloudformation get-hook-result --hook-result-id <ID> --region us-west-2
The hook result ID should be available in the CloudFormation events.
-
Examine CloudFormation Events: Use the DescribeEvents API as suggested in the error message to get more detailed failure information.
-
Consider Neptune Analytics operational procedures: Ensure you're following best practices for Neptune Analytics deployment, such as proper sizing and configuration.
-
Contact AWS Support: Since this appears to be a specific interaction between CloudFormation Early Validation and Neptune Analytics, and you've already tried multiple workarounds, AWS Support might be able to provide specific guidance or identify if there's a known issue.
For your immediate needs, you might need to continue with your current workaround of deploying other infrastructure components while this issue is being resolved. If you need to deploy Neptune Analytics urgently, consider using the AWS Console or direct API calls as an alternative approach until the CloudFormation deployment issue is resolved.
Sources
Validate Your Lambda Runtime with CloudFormation Lambda Hooks | AWS DevOps & Developer Productivity Blog
View invocation results for CloudFormation Hooks - CloudFormation
class CfnLambdaHook (construct) · AWS CDK
Operational excellence pillar - AWS Prescriptive Guidance
answered 9 months ago
Hey,
Hope you're keeping well.
The AWS::EarlyValidation::ResourceExistenceCheck hook runs before stack creation to verify that referenced resources and service endpoints are available. For new resource types like AWS::NeptuneGraph::Graph, this can fail if the service’s CloudFormation integration isn’t fully rolled out in your region or if the API endpoint isn’t yet enabled in your account. I’d recommend running aws cloudformation describe-stack-events --stack-name <name> to see the exact validation failure, and confirm via aws neptune-graph list-graphs --region us-west-2 that the service responds.
Thanks and regards,
Taz
answered 9 months ago
Hey,
Hope you're keeping well.
The AWS::EarlyValidation::ResourceExistenceCheck hook runs before stack creation and will fail if CloudFormation detects the resource type isn’t fully deployable in your account or region. For new services like Neptune Analytics, this can happen if the service’s CloudFormation integration isn’t yet enabled in that region for your account. Use aws cloudformation describe-stack-events --stack-name <name> to get the exact failure reason, and verify the AWS::NeptuneGraph::Graph type is listed in aws cloudformation list-types --visibility PUBLIC --region us-west-2.
Thanks and regards,
Taz
answered 9 months ago
