amazon-web-services

AWS get cost by specific users

穿精又带淫゛_ 提交于 2021-02-08 06:46:00
问题 I would like to see the spendings on my company's AWS account monthly, by specific users. So far I am only able to see the spendings monthly by service. This can be done using AWS Cost explorer. AWS Cloudtrail allows me to see any user activity. Is there any way to combine these two services to reach my goal? Or would it be done another way? 回答1: You have to write custom script using language AWS SDK support. I will suggest python using boto3 AWS CLI : https://docs.aws.amazon.com/cli/latest

AWS get cost by specific users

谁都会走 提交于 2021-02-08 06:44:24
问题 I would like to see the spendings on my company's AWS account monthly, by specific users. So far I am only able to see the spendings monthly by service. This can be done using AWS Cost explorer. AWS Cloudtrail allows me to see any user activity. Is there any way to combine these two services to reach my goal? Or would it be done another way? 回答1: You have to write custom script using language AWS SDK support. I will suggest python using boto3 AWS CLI : https://docs.aws.amazon.com/cli/latest

How to view all the services running on AWS?

不羁岁月 提交于 2021-02-08 05:47:45
问题 How would I be able to view all the services running on aws. I have been charged some $$$, so what to close the services that are running. Most of the $ are being charged for KMS(Key Management System). When I go inside the KMS from aws console there's nothing. Please Help!!!! 回答1: Firstly, you can check aws bills to see for what you have been charted for - https://aws.amazon.com/premiumsupport/knowledge-center/view-aws-payments/; Also, aws has a tool called trusted advisor that will be able

Terraform conditional provisioning

柔情痞子 提交于 2021-02-08 05:43:49
问题 I have an issue with Terraform provisioning. When I run terraform first time I am using SSH key generated in AWS console. This key is being added to ubuntu user (it's Ubuntu 16.04 AMI). Then I run remote-exec provisioning: provisioner "remote-exec" { inline = [ "sudo apt -y update && sudo apt install -y python" ] connection { user = "ubuntu" private_key = "${file("${var.aws_default_key_name}.pem")}" } } I need python being installed so I can use Ansible later. That's the only place where I

Terraform conditional provisioning

陌路散爱 提交于 2021-02-08 05:43:21
问题 I have an issue with Terraform provisioning. When I run terraform first time I am using SSH key generated in AWS console. This key is being added to ubuntu user (it's Ubuntu 16.04 AMI). Then I run remote-exec provisioning: provisioner "remote-exec" { inline = [ "sudo apt -y update && sudo apt install -y python" ] connection { user = "ubuntu" private_key = "${file("${var.aws_default_key_name}.pem")}" } } I need python being installed so I can use Ansible later. That's the only place where I

direct upload string from browser to s3 without local file

泪湿孤枕 提交于 2021-02-08 05:34:28
问题 I am using javascript, node.js and aws sdk. There are many examples about uploading existing files to S3 directly with signed URL, but now I am trying to upload strings and create a file in S3, without any local saved files. Any suggestion, please? 回答1: Have not tried amazon-web-services , amazon-s3 or aws-sdk , though if you are able to upload File or FormData objects you can create either or both at JavaScript and upload the object. // create a `File` object const file = new File(["abc"],

Temporarily disable DynamoDB Lambda Triggers / Stream

老子叫甜甜 提交于 2021-02-08 05:31:52
问题 I'm looking for a way to temporarily disable Lambda triggers on a DynamoDB. I want to be able do apply manual Updates on a table (e.g. such as importing data from a S3 backup) without the Lambda code being triggers. I tried the disable button next to the trigger in the lambda functions "Trigger" tab. I also tried to disable the whole Stream for the table. In both cases, when reactivating the trigger/stream all the trigger events (that happened, while they were deactivated) are executed then.

Temporarily disable DynamoDB Lambda Triggers / Stream

こ雲淡風輕ζ 提交于 2021-02-08 05:31:32
问题 I'm looking for a way to temporarily disable Lambda triggers on a DynamoDB. I want to be able do apply manual Updates on a table (e.g. such as importing data from a S3 backup) without the Lambda code being triggers. I tried the disable button next to the trigger in the lambda functions "Trigger" tab. I also tried to disable the whole Stream for the table. In both cases, when reactivating the trigger/stream all the trigger events (that happened, while they were deactivated) are executed then.

Amazon ECS - Permission denied when using IAM role on Docker entrypoint

人走茶凉 提交于 2021-02-08 05:31:18
问题 I'm looking for a way to inject secrets/certificates into Amazon ECS containers. In my case, it's a simple nginx container. I've been following this post, using AWS Parameter Store: https://aws.amazon.com/blogs/compute/managing-secrets-for-amazon-ecs-applications-using-parameter-store-and-iam-roles-for-tasks/ Here's the basic gist: On my Dockerfile, I attach a script on entrypoint which installs the AWS client and fetches the keys from AWS parameter store. Dockerfile FROM nginx:1.16.0 ...

ElasticSearch authentication error with ElasticCloud?

雨燕双飞 提交于 2021-02-08 05:04:02
问题 I have just set up a new ElasticSearch cluster on ElasticCloud and I am trying to follow the help documentation. It says you can post a document as follows: curl https://<id>.<region>.aws.found.io:9243/my_index/my_type -XPOST -d '{"title": "One", "tags": ["ruby"] }' So I am trying this with my own URL, but I am getting: {"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:data/write/index] requires authentication","header":{"WWW-Authenticate":"Basic realm=\"security\