terraform-provider-proxmox
simple VM created with terraform-provider-proxmox
- one core
- 512MB RAM
- Ubuntu netinstall CDROM
- 32GB IDE HDD
- bridged network interface
func getAllFilenames(fs *embed.FS, path string) (out []string, err error) { | |
if len(path) == 0 { | |
path = "." | |
} | |
entries, err := fs.ReadDir(path) | |
if err != nil { | |
return nil, err | |
} | |
for _, entry := range entries { | |
fp := filepath.Join(path, entry.Name()) |
simple VM created with terraform-provider-proxmox
I hereby claim:
To claim this, I am signing this object:
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi |
curl -X PUT -T test_s3.txt -L "https://your-bucket.s3.amazonaws.com/url-stuff" |
import boto3 | |
from boto3.session import Session | |
def assume_role(arn, session_name): | |
"""aws sts assume-role --role-arn arn:aws:iam::00000000000000:role/example-role --role-session-name example-role""" | |
client = boto3.client('sts') | |
account_id = client.get_caller_identity()["Account"] | |
print(account_id) |
package main | |
import ( | |
"net/http" | |
"net/url" | |
"fmt" | |
"strings" | |
"io/ioutil" | |
"encoding/json" | |
) |