N
Nuxt2mo ago
thorne51

AWS Amplify hosting configuration

So we currently hava nuxt3 app that is deployed as multiple amplify instances (around 40) with different env configs (domains, etc.). We would like to get all the resources generated by amplify (logs, lambdas, cloudwatch, etc.) tagged for cost tracking. We would also like to set the log retention period automatically on the CloudWatch logs. I've been searching through the docs and checked the nitro config documentation and source, and can't figure out if there is a way to do this.
2 Replies
kapa.ai
kapa.ai2mo ago
Hi @thorne51. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information provided in the knowledge sources, I don't have enough specific details to fully answer your question about tagging resources and setting log retention periods for AWS Amplify hosting with Nuxt 3. However, I can provide some relevant information and suggestions based on the available documentation. Nuxt 3 uses Nitro as its server engine, which has built-in support for AWS Amplify hosting. The AWS Amplify deployment documentation (https://nitro.unjs.io/deploy/providers/aws-amplify) mentions that there is zero-configuration support for deploying to AWS Amplify Hosting. For advanced configuration options, you can use the awsAmplify option in your Nitro configuration. Here's an example of how you might set this up in your nuxt.config.ts file:
export default defineNuxtConfig({
nitro: {
awsAmplify: {
// Advanced configuration options go here
}
}
})
export default defineNuxtConfig({
nitro: {
awsAmplify: {
// Advanced configuration options go here
}
}
})
However, the documentation doesn't mention specific options for tagging resources or setting log retention periods. For server-side logging, the AWS Amplify documentation mentions that you can "Enable SSR logging to enable server-side logging to your Amazon CloudWatch account" AWS Amplify Hosting (https://nitro.unjs.io/deploy/providers/aws-amplify). This might be a starting point for managing your logs, but it doesn't provide details on how to set retention periods or tag resources. For more specific AWS Amplify configurations that aren't covered in the Nuxt/Nitro documentation, you might need to use a custom amplify.yml file. The documentation provides an example of this file, which you could potentially extend with AWS-specific configurations AWS Amplify Advanced Configuration (https://nitro.unjs.io/deploy/providers/aws-amplify#advanced-configuration). Given that your specific requirements (tagging resources and setting log retention periods) are not directly addressed in the Nuxt or Nitro documentation, you might need to explore AWS Amplify-specific documentation or tools to achieve these goals. It's possible that these configurations need to be done at the AWS level rather than through Nuxt or Nitro configurations. I apologize that I don't have more specific information to address your exact needs. You might want to consult AWS Amplify documentation or reach out to AWS support for guidance on how to implement resource tagging and log retention settings for your specific use case. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@229918754069282818> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Want results from more Discord servers?
Add your server