How can we create database and table in Amazon Athena using CloudFormation









up vote
1
down vote

favorite












Is there any way to create DataBase and Table in Amazon Athena using CloudFormation.
I referred to AWS documentation and there seems to be only one resource which can be created using CloudFormation.



Ref :



  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html


  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html










share|improve this question





















  • CloudFormation doesn't seem to support this right now. You can always use a custom resource to do it.
    – kichik
    Feb 8 at 2:05














up vote
1
down vote

favorite












Is there any way to create DataBase and Table in Amazon Athena using CloudFormation.
I referred to AWS documentation and there seems to be only one resource which can be created using CloudFormation.



Ref :



  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html


  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html










share|improve this question





















  • CloudFormation doesn't seem to support this right now. You can always use a custom resource to do it.
    – kichik
    Feb 8 at 2:05












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Is there any way to create DataBase and Table in Amazon Athena using CloudFormation.
I referred to AWS documentation and there seems to be only one resource which can be created using CloudFormation.



Ref :



  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html


  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html










share|improve this question













Is there any way to create DataBase and Table in Amazon Athena using CloudFormation.
I referred to AWS documentation and there seems to be only one resource which can be created using CloudFormation.



Ref :



  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html


  • https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html







amazon-web-services amazon-cloudformation amazon-athena






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 6 at 11:32









Suresh Kumar

183




183











  • CloudFormation doesn't seem to support this right now. You can always use a custom resource to do it.
    – kichik
    Feb 8 at 2:05
















  • CloudFormation doesn't seem to support this right now. You can always use a custom resource to do it.
    – kichik
    Feb 8 at 2:05















CloudFormation doesn't seem to support this right now. You can always use a custom resource to do it.
– kichik
Feb 8 at 2:05




CloudFormation doesn't seem to support this right now. You can always use a custom resource to do it.
– kichik
Feb 8 at 2:05












2 Answers
2






active

oldest

votes

















up vote
0
down vote













Have you looked here



https://docs.aws.amazon.com/athena/latest/ug/creating-tables.html



Why do you need to create a database and table with Cloudformation in Athena?






share|improve this answer




















  • Yes I have looked at it and I have implemented it as well. We are supposed to use CloudFormation and its a requirement for us.
    – Suresh Kumar
    Feb 8 at 10:41










  • In that case then you may need to use CloudFormation to create a lambda function that then is triggered to create the table in Athena
    – MonkeyMagic
    Mar 2 at 15:31

















up vote
0
down vote













It is now possible to create Athena Table in CloudFormation through the Glue Data Catalog:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html






share|improve this answer




















  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Reza Mousavi
    Nov 6 at 14:46










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48642078%2fhow-can-we-create-database-and-table-in-amazon-athena-using-cloudformation%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Have you looked here



https://docs.aws.amazon.com/athena/latest/ug/creating-tables.html



Why do you need to create a database and table with Cloudformation in Athena?






share|improve this answer




















  • Yes I have looked at it and I have implemented it as well. We are supposed to use CloudFormation and its a requirement for us.
    – Suresh Kumar
    Feb 8 at 10:41










  • In that case then you may need to use CloudFormation to create a lambda function that then is triggered to create the table in Athena
    – MonkeyMagic
    Mar 2 at 15:31














up vote
0
down vote













Have you looked here



https://docs.aws.amazon.com/athena/latest/ug/creating-tables.html



Why do you need to create a database and table with Cloudformation in Athena?






share|improve this answer




















  • Yes I have looked at it and I have implemented it as well. We are supposed to use CloudFormation and its a requirement for us.
    – Suresh Kumar
    Feb 8 at 10:41










  • In that case then you may need to use CloudFormation to create a lambda function that then is triggered to create the table in Athena
    – MonkeyMagic
    Mar 2 at 15:31












up vote
0
down vote










up vote
0
down vote









Have you looked here



https://docs.aws.amazon.com/athena/latest/ug/creating-tables.html



Why do you need to create a database and table with Cloudformation in Athena?






share|improve this answer












Have you looked here



https://docs.aws.amazon.com/athena/latest/ug/creating-tables.html



Why do you need to create a database and table with Cloudformation in Athena?







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 7 at 16:51









MonkeyMagic

912




912











  • Yes I have looked at it and I have implemented it as well. We are supposed to use CloudFormation and its a requirement for us.
    – Suresh Kumar
    Feb 8 at 10:41










  • In that case then you may need to use CloudFormation to create a lambda function that then is triggered to create the table in Athena
    – MonkeyMagic
    Mar 2 at 15:31
















  • Yes I have looked at it and I have implemented it as well. We are supposed to use CloudFormation and its a requirement for us.
    – Suresh Kumar
    Feb 8 at 10:41










  • In that case then you may need to use CloudFormation to create a lambda function that then is triggered to create the table in Athena
    – MonkeyMagic
    Mar 2 at 15:31















Yes I have looked at it and I have implemented it as well. We are supposed to use CloudFormation and its a requirement for us.
– Suresh Kumar
Feb 8 at 10:41




Yes I have looked at it and I have implemented it as well. We are supposed to use CloudFormation and its a requirement for us.
– Suresh Kumar
Feb 8 at 10:41












In that case then you may need to use CloudFormation to create a lambda function that then is triggered to create the table in Athena
– MonkeyMagic
Mar 2 at 15:31




In that case then you may need to use CloudFormation to create a lambda function that then is triggered to create the table in Athena
– MonkeyMagic
Mar 2 at 15:31












up vote
0
down vote













It is now possible to create Athena Table in CloudFormation through the Glue Data Catalog:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html






share|improve this answer




















  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Reza Mousavi
    Nov 6 at 14:46














up vote
0
down vote













It is now possible to create Athena Table in CloudFormation through the Glue Data Catalog:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html






share|improve this answer




















  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Reza Mousavi
    Nov 6 at 14:46












up vote
0
down vote










up vote
0
down vote









It is now possible to create Athena Table in CloudFormation through the Glue Data Catalog:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html






share|improve this answer












It is now possible to create Athena Table in CloudFormation through the Glue Data Catalog:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 6 at 12:23









ics88

1




1











  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Reza Mousavi
    Nov 6 at 14:46
















  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Reza Mousavi
    Nov 6 at 14:46















While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
– Reza Mousavi
Nov 6 at 14:46




While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
– Reza Mousavi
Nov 6 at 14:46

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48642078%2fhow-can-we-create-database-and-table-in-amazon-athena-using-cloudformation%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo