I am trying to create an IoT Sitewise asset in aws using terraform however it is not listed in documentation. Is there a way for me to create this or is it not supported by the provider yet? By the way I am very new to these concepts so please do not mind me if I am asking something obvious.
You are correct that as of right now, IoT Sitewise is not supported by Terraform. IoT Sitewise was just launched last month. Terraform is updated regularly with new AWS services, so the best way to find out when it becomes supported is to keep an eye on the AWS Provider Documentation in Terraform's documentation. Search for "IoT" in the navigation pane and it will populate in the search results when they have added support.
You could use the awscc (AWS Cloud Control) provider: https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/iotsitewise_asset. Later on, when it makes it to the official aws provider, you can switch to it.
Related
I am trying to setup AWS Managed grafana using terraform. I am following this examples:
https://github.com/terraform-aws-modules/terraform-aws-managed-service-grafana/tree/master/examples/complete
I can able to setup the grafana via terraform. Then I created dashboard.json and tried to apply dashboard via terraform. But I am not able to find any suitable link for it. Can anyone please help me on this?
It doesn't look like theres a resource in the terraform provider for adding a dashboard just yet. Available resources
There is however an AWS REST API for it: https://docs.aws.amazon.com/grafana/latest/userguide/Grafana-API-Dashboard.html
I've recently been investigating this myself and decided to just create them manually and store json backups of the dashboard configuration for when it becomes available.
At my place we use Pulumi, which would make it easier to add a custom integration to add dashboard to the Grafana instance, so I will be looking in to that when I have more time.
you will have to use the grafana provider for Terraform.
Here is a sample code that might help you: https://github.com/kunduso/aws_managed_grafana_workspace_dashboard/tree/main/amg_dashboard
Sorry, I’m sort of a newbie when it comes to Amazon AWS Cloud so sorry if I sound naïve.
For .NET developers, I’ve used Visual Studio 2019’s AWS Lambda project to code Lambda functions and ultimately deploy it to Amazon AWS cloud
However, my concern is that there is No way to version and/or back up the Configurations for the AWS Services ( i.e., S3 bucket, Amazon SNS & SQS, etc.) that are invoked and/or trigger the various AWS Lambda Functions
The problem is that IT developers who configure said AWS Services have to use the ADFS AWS Services console website’s GUI to configure the various AWS Services, and if someone mistakenly deletes an AWS Services then they lose the configuration settings as well?
How do we go about versioning and/or backing up Configurations for the AWS Services?
There are Infrastructure as a Code frameworks like Terraform and Ansible designed to address that.
You can't really delete an AWS service.
it seems like you guys are kind of "new" to AWS so I will recommend using CloudFormation templates as Infrastructure As Code tool. All the configuration of how your AWS resources are supposed to look like can be added to the template and you deploy the template to create your AWS resources. Its AWS-Native and does not cost you anything.
On top of it, you also want to add your CloudFormation templates to version control system.
I am working over AWS trying some security features like securityhub, and I was deployed it trough terraform. Now I am interested in apply from terraform AWS inspector after try it from aws console; but I don't find a way to configure this implementation applying an account delegation and full freatured deployment, I was only found the way to apply the old classic inspector over aws. There is a way to implement aws inspector v2 with terraform?
Thanks
I just saw thath Inspector v2 is a new feature (released one month ago) and at the moment is is not supported by Terraform.
Terraform GitHub Issue
I'm working with aws and implementing CI/CD using their developer tools. Each of the tools requires a service role, so I decided to just update my existing service role with the correct permissions. The problem is I don't know where to find the list of values to use for each service.
Below I just guessed the right name after creating a role, but I prefer not to guess
I searched the docs and found these names and I also tried using the cli to find the ids: aws describe-services or aws help but that list doesn't match.
How do I find the values to update these policies?
Based on comments there is no official API. But there is an unofficial List of AWS Service Principals been kind of maintained by the people.
Is it possible to create a custom Alexa skill with the back-end Lambda (code) completely from AWS/ASK CLI? The Lambda interacts with DynamoDB, so it would be ideal to include the provisioning of the DynamoDB backend via the CLI too.
It's not possible to do it with DynamoDB provisioning (otherwise, yes, please check this page).
Here's a feature request for supporting DynamoDB provisioning in the CLI (please vote up!)
Yes, it's very much possible. Here is the documentation. If you use Visual Studio Code then there is an extension that integrates ask cli with it.