https://github.com/anupvarghese/counterstrike-on-cloud
counter strike 1.6 server on Azure/AWS
https://github.com/anupvarghese/counterstrike-on-cloud
amazon-web-services aws azure counter-strike counterstrike terraform
Last synced: 2 months ago
JSON representation
counter strike 1.6 server on Azure/AWS
- Host: GitHub
- URL: https://github.com/anupvarghese/counterstrike-on-cloud
- Owner: anupvarghese
- Created: 2020-05-20T16:36:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T03:38:50.000Z (about 6 years ago)
- Last Synced: 2025-07-18T22:34:17.016Z (12 months ago)
- Topics: amazon-web-services, aws, azure, counter-strike, counterstrike, terraform
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Run CS 1.6 server on Azure/AWS
### Steps
- Install terraform, azure cli/awscli are installed
```
brew install terraform azure-cli awscli
```
#### Azure
- Login to Azure
```
az login
```
- Get subscription id
```
az account list
```
- Provision a service principal for CLI access
```
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/"
```
#### Secrets
Keep the secrets in `secret.tfvars` as
```terraform
region = "eastasia"
subscription_id = "your subsciption id"
client_id = "your client id"
tenant_id = "your tenant id"
```
#### AWS
Create secret key and access key add that in secrets
#### Secrets
Keep the secrets in `secret.tfvars` as
```terraform
access_key = "your access key"
secret_key = "your secret key"
region = "ap-southeast-1"
instance_type = "t3.micro"
availability_zone = "ap-southeast-1a"
# check if the AMI is available in the region
instance_ami = "ami-01c54eee4ab8725c0"
```
#### Start (from aws/azure folder)
```
terraform init
terraform plan -var-file="secret.tfvars"
terraform apply -var-file="secret.tfvars"
```
#### Stop
```
terraform destroy -var-file="secret.tfvars"
```