New answers tagged

3

This is not a good way to go about this, terraform is a declarative language and you should always follow this principle. Either terraform is managing a resource or terraform is querying an existing resource in order to provide information to manage a resource. If you allow scripting, very soon people will be implementing OOP, interaces, generics and it ...


1

Yes and it costs 400$ a month. https://docs.aws.amazon.com/solutions/latest/aws-perspective/welcome.html It's a live diagram of all the resource in your organization, which means that it's capable of generating a live diagram for several accounts. Seems crazy, but this can actually be useful to get a birdseye view of all the resources in complex scenarios. ...


2

At this point, it is not possible to have that exactly. You can enable async replication from one MongoDB instance to several read replicas. You can have two writable instances, and write to the same collections but you can't write to the same documents on both servers. This is achievable by using sharding. But each server will have half of the data. Since ...


1

quick answer: - The user will need the permissions to execute the ec2 run-instances command. Explanation on how to do this: First create a policy (not Role) that authorizes the EC2 RunInstances action (find it in the table in the middle of the link). The EC2 RunInstances action requires access to many resources and you need to define which resources to ...


0

When you use awsvpc for your ECS containers, those containers can't connect to a internet gateway directly since awsvpc can't provide public IP addresses to the ENIs of the containers despite them sitting in a public subnet (https://docs.aws.amazon.com/AmazonECS/latest/bestpracticesguide/networking-outbound.html). Thus you need to use a NAT gateway to ...


1

The pricing of these images says its $130/year (for software + AWS usage): Does this mean running costs of EC2 are also covered in this pricing? No. If you read the details in the AMI Subscription page, it says in the last sentence: "Charges for using Amazon EC2 and other services from AWS are separate and in addition to what you pay to purchase AWS ...


0

I'm assuming you are using Amazon DocumentDB for the MongoDB cluster. As of today you can't have active/active configuration and asynchronous replication for DocumentDB. The closest feature for DocumentDB are global clusters which allow global reads, but not global writes. Moreover, keep in mind that AWS China is entirely separated from the AWS Global ...


0

A better approach I came to discover was using the user_data of a launch configuration. While it still suffers some of the same issues that provisioners introduce, there's a lot less room for error in terms of permissions and timing as seen in other questions. For Example: resource "aws_launch_configuration" "sample" { image_id ...


Top 50 recent answers are included