This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws iam update-user --user-name <Oldname> --new-user-name <Newname> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws iam update-group --group-name <Oldname> --new-group-name <Newname> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nvm alias default <version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example retrieving pod information for pods that have a label 'app' with the value 'my-app' | |
kubectl get pods -l app=my-app | |
# Example deleting pods that have a label 'app' with the value 'my-app' | |
kubectl delete pods -l app=my-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER 'master_user'@'%' IDENTIFIED BY 'password'; | |
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER ON *.* TO 'master_user'@'%' WITH GRANT OPTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create User | |
CREATE USER 'username'@'%' IDENTIFIED BY 'somepassword'; | |
-- Update User | |
ALTER USER 'username'@'%' IDENTIFIED BY 'somepassword'; | |
-- Grant to Specific Schema/DB | |
GRANT ALL ON some-schema.* TO 'username'@'%'; | |
-- Grant user permissions similiar to master user in RDS | |
GRANT ALL PRIVILEGES ON `%`.* TO 'username'@'%' WITH GRANT OPTION; | |
GRANT LOAD FROM S3 ON *.* TO 'username'@'%'; | |
GRANT SELECT INTO S3 ON *.* TO 'username'@'%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Grant statements | |
GRANT LOAD FROM S3 ON *.* TO 'username'@'%'; | |
GRANT SELECT INTO S3 ON *.* TO 'username'@'%'; | |
-- Replace with appropriate Schema, Table, AWS Region Code, and S3 URI | |
SELECT * FROM some-schema.some-table INTO OUTFILE S3 's3-some-region-code://some-buck-name/some-prefix' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_region" "current" {} | |
data "aws_caller_identity" "current" {} | |
locals { | |
aws_region = data.aws_region.current.name | |
aws_account_id = data.aws_caller_identity.current.account_id | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/os-release |
OlderNewer