Skip to content

Commit

Permalink
use t3.medium instead of t2.medium (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green authored Aug 24, 2020
1 parent d0102a4 commit 072ac0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ what the remote hosts runs) is much more performant.
The downsides:
- SSH tunnel communication is slower than local communication. However using an AWS region with low ping makes the latency unnoticeable. Find the region fastest for you using [this site](https://ping.psa.fun/) or [this site](https://www.cloudping.info/)
- Some more setup required to get everything configured properly and running (tunneling ports, syncing file changes)
- Running the ec2 instance incurs an additional cost over running locally, although a t2.medium instance in Canada only costs about 5 cents/hour
- Running the ec2 instance incurs an additional cost over running locally, although a t3.medium instance in Canada only costs just under 5 cents/hour

## Setup
1. First login to your AWS account and [create access keys to access AWS through the CLI](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html)
Expand Down Expand Up @@ -174,7 +174,7 @@ The current configurable values are:
- The region to create the instance in

#### `instance_type`
- Type of ec2 instance, defaults to: `t2.medium`
- Type of ec2 instance, defaults to: `t3.medium`

#### `key_path`
- defaults to: `~/.ssh/id_rsa_remote_docker`
Expand Down Expand Up @@ -217,7 +217,7 @@ except for lists and dictionaries which are merged with the values outside the p
## Cost
A t2.medium instance on ca-central-1 currently costs $0.051 /hour. [See current prices](https://aws.amazon.com/ec2/pricing/on-demand/)
A t3.medium instance on ca-central-1 currently costs $0.046 /hour. [See current prices](https://aws.amazon.com/ec2/pricing/on-demand/)
Nothing else used should incur any cost with reasonable usage
Expand Down
2 changes: 1 addition & 1 deletion src/remote_docker_aws/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
INSTANCE_USERNAME = "ubuntu"
# Used to identify the ec2 instance
INSTANCE_SERVICE_NAME = "remote-docker-ec2-agent"
INSTANCE_TYPE_DEFAULT = "t2.medium"
INSTANCE_TYPE_DEFAULT = "t3.medium"
SCEPTRE_PATH = os.path.join(pathlib.Path(__file__).parent.absolute(), "sceptre")
SCEPTRE_PROJECT_CODE = "remote-docker"
# AWS free tier includes 30GB, so seems like a sensible default
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_handles_file_does_exist(_mock_is_file, file_open_mocker, mock_contents)

def test_settings_with_defaults():
config = RemoteDockerConfigProfile({})
assert config.instance_type == "t2.medium"
assert config.instance_type == "t3.medium"
assert config.key_path == os.path.expanduser("~/.ssh/id_rsa_remote_docker")
assert config.local_port_forwards == {}
assert config.remote_port_forwards == {}
Expand Down

0 comments on commit 072ac0f

Please sign in to comment.