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
AT_TIMESTAMP value for StartingPosition not supported in CloudFormation #1741
Comments
Hi @jeremlvt , I am not able to reproduce your issue. I tried to deploy your template using
I am using SAM CLI 1.6.2 on Windows 10. Can you please retry after updating SAM? Thanks |
Hi @c2tarun, thank you for your answer. I have updated SAM to 1.6.2 but I still get the same error when I deploy the stack :
Did you use AT_TIMESTAMP as starting position ? |
Ohh I didn't realize that the Default value for
When trying to deploy this template I get following error from CFN:
On searching a bit I found this github issue where someone claims to have an internal ticket for the issue. There is no update on that since then. Like OP mentioned, CFN does not support AT_TIMESTAMP for Kinesis here. |
This issue should be resolved by either Cloudformation team or Kinesis team working with CFN team. I am not able to find any monitored issues queue from CFN team on Github. |
Additionally, I've filed a ticket to remove the reference to AT_TIMESTAMP in the sam docs, bringing them in line with what is supported in CloudFormation currently. |
Description:
I'm trying to deploy a SAM template that creates a Kinesis stream and a Lambda function that triggers everytime data goes through the stream. I use parameters, one of them being the StartingPosition that I want to use for the Kinesis stream. The SAM documentation for Kinesis events seems to say that AT_TIMESTAMP is a correct value to pass as StartingPosition, but the CloudFormation documentation for EventSourceMapping doesn't include AT_TIMESTAMP as a correct value.
This seems weird considering timestamps can be used as starting positions with the AWS CLI as well as the AWS API.
Here is the template I used :
Steps to reproduce the issue :
Use
sam build
andsam deploy --guided
with the previous template and a dummy hello world function in NodeJSI am using SAM CLI version 1.2.0 for Windows 10
Observed result:
I am getting the following error on deployment :
Model validation failed (#/StartingPosition: failed validation constraint for keyword [pattern])
Expected result:
I should be able to use AT_TIMESTAMP as a StartingPosition for my Kinesis event in CloudFormation. Any help is appreciated, thank you very much !
The text was updated successfully, but these errors were encountered: