"Condition" : {
"IpAddress" : {
"aws:SourceIp": "xxx.xxx.xxx..xxx/32"
},
}
|
More examples can be found in following references:
My online tech scrapbook where I keep my notes in case I need to look them up later
"Condition" : {
"IpAddress" : {
"aws:SourceIp": "xxx.xxx.xxx..xxx/32"
},
}
|
mongo admin
|
db.createUser({user: "adminUserName",pwd:"adminUserPassword",
roles: [ { role: "userAdminAnyDatabase", db: "admin" },
{ role: "readWriteAnyDatabase", db: "admin" },
{ role: "dbAdminAnyDatabase", db: "admin" },
]
})
|
auth=true
|
db.auth({user: "adminUserName",pwd:"adminUserPassword"})
|
db.createUser({user: "dbUserName",pwd:"dbUserPassword",
roles: [ { role: "dbOwner", db: "dbName" }]
})
|
<taskdef resource="taskdefs.xml" classpath="~/.ant/lib/aws-java-sdk-ant-tasks-1.2.3.jar" />
|
<target name="deploy-s3" depends="war">
<upload-to-s3 bucketName="bucket-name" keyPrefix="folder-name/" continueOnFail="false" awsAccessKeyId="${aws.access.key}" awsSecretKey="${aws.secret.key}">
<fileset>
<!-- define files here -->
</fileset>
</upload-to-s3>
</target>
|
aws s3 cp s3://<bucket-name>/<folder-name>/<file-name> <local-file-name>
|